From 2d9a5b993e188e7de028900d553a10e3130ea4da Mon Sep 17 00:00:00 2001 From: Andreas Willinger Date: Thu, 8 Feb 2024 20:42:40 +0100 Subject: [PATCH] Make methodmap natives optional --- .../scripting/include/nativevotes.inc | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/addons/sourcemod/scripting/include/nativevotes.inc b/addons/sourcemod/scripting/include/nativevotes.inc index 426e6d1..578bca0 100644 --- a/addons/sourcemod/scripting/include/nativevotes.inc +++ b/addons/sourcemod/scripting/include/nativevotes.inc @@ -1502,6 +1502,38 @@ public SharedPlugin __pl_nativevotes = #if !defined REQUIRE_PLUGIN public void __pl_nativevotes_SetNTVOptional() { + MarkNativeAsOptional("NativeVote.NativeVote"); + MarkNativeAsOptional("NativeVote.Close"); + MarkNativeAsOptional("NativeVote.AddItem"); + MarkNativeAsOptional("NativeVote.InsertItem"); + MarkNativeAsOptional("NativeVote.RemoveItem"); + MarkNativeAsOptional("NativeVote.RemoveAllItems"); + MarkNativeAsOptional("NativeVote.GetItem"); + MarkNativeAsOptional("NativeVote.SetDetails"); + MarkNativeAsOptional("NativeVote.GetDetails"); + MarkNativeAsOptional("NativeVote.SetTitle"); + MarkNativeAsOptional("NativeVote.GetTitle"); + MarkNativeAsOptional("NativeVote.SetTarget"); + MarkNativeAsOptional("NativeVote.GetTarget"); + MarkNativeAsOptional("NativeVote.GetTargetSteam"); + MarkNativeAsOptional("NativeVote.DisplayVote"); + MarkNativeAsOptional("NativeVote.DisplayVoteToAll"); + MarkNativeAsOptional("NativeVote.DisplayPass"); + MarkNativeAsOptional("NativeVote.DisplayPassCustomToOne"); + MarkNativeAsOptional("NativeVote.DisplayPassCustom"); + MarkNativeAsOptional("NativeVote.DisplayPassEx"); + MarkNativeAsOptional("NativeVote.DisplayFail"); + MarkNativeAsOptional("NativeVote.OptionFlags.get"); + MarkNativeAsOptional("NativeVote.OptionFlags.set"); + MarkNativeAsOptional("NativeVote.NoVoteButton.set"); + MarkNativeAsOptional("NativeVote.VoteResultCallback.set"); + MarkNativeAsOptional("NativeVote.ItemCount.get"); + MarkNativeAsOptional("NativeVote.VoteType.get"); + MarkNativeAsOptional("NativeVote.Team.get"); + MarkNativeAsOptional("NativeVote.Team.set"); + MarkNativeAsOptional("NativeVote.Initiator.get"); + MarkNativeAsOptional("NativeVote.Initiator.set"); + MarkNativeAsOptional("NativeVotes_IsVoteTypeSupported"); MarkNativeAsOptional("NativeVotes_Create"); MarkNativeAsOptional("NativeVotes_Close");