fix UNLOZE+ReservedSlots

fix dependency unload error in a few plugins with LibraryExists in OnAllPluginsLoaded
This commit is contained in:
BotoX
2019-10-03 13:46:17 +02:00
parent a83f87e656
commit 492703fb5c
8 changed files with 52 additions and 55 deletions
-30
View File
@@ -1,30 +0,0 @@
#if defined _GFLClanru_Included
#endinput
#endif
#define _GFLClanru_Included
typeset AsyncHasSteamIDReservedSlotCallbackFunc
{
function void (const char[] sSteam32ID, int Result);
function void (const char[] sSteam32ID, int Result, any Data);
};
native void AsyncHasSteamIDReservedSlot(const char[] sSteam32ID, AsyncHasSteamIDReservedSlotCallbackFunc Callback, any Data = 0);
public SharedPlugin __pl_GFLClanru =
{
name = "GFLClanru",
file = "GFLClanru.smx",
#if defined REQUIRE_PLUGIN
required = 1,
#else
required = 0,
#endif
};
#if !defined REQUIRE_PLUGIN
public __pl_GFLClanru_SetNTVOptional()
{
MarkNativeAsOptional("AsyncHasSteamIDReservedSlot");
}
#endif
+9 -9
View File
@@ -1,19 +1,19 @@
#if defined _unloze_ForumIntegration_Included
#if defined _UNLOZE_ForumIntegration_Included
#endinput
#endif
#define _unloze_ForumIntegration_Included
#define _UNLOZE_ForumIntegration_Included
typeset HasSteamIDReservedSlotCallback
typeset AsyncHasSteamIDReservedSlotCallbackFunc
{
function void (const char[] sSteam32ID, int Result);
function void (const char[] sSteam32ID, int Result, any Data);
};
native void HasSteamIDReservedSlot(const char[] sSteam32ID, HasSteamIDReservedSlotCallback Callback, any Data = 0);
native void AsyncHasSteamIDReservedSlot(const char[] sSteam32ID, AsyncHasSteamIDReservedSlotCallbackFunc Callback, any Data = 0);
public SharedPlugin __pl_unloze_ForumIntegration =
public SharedPlugin __pl_UNLOZE_ForumIntegration =
{
name = "UNLOZE Forum Integration",
name = "UNLOZE_ForumIntegration",
file = "UNLOZE_ForumIntegration.smx",
#if defined REQUIRE_PLUGIN
required = 1,
@@ -23,8 +23,8 @@ public SharedPlugin __pl_unloze_ForumIntegration =
};
#if !defined REQUIRE_PLUGIN
public __pl_UNLOZE Forum Integration_SetNTVOptional()
public __pl_UNLOZE_ForumIntegration_SetNTVOptional()
{
MarkNativeAsOptional("HasSteamIDReservedSlot");
MarkNativeAsOptional("AsyncHasSteamIDReservedSlot");
}
#endif
#endif