forked from UNLOZE/sm-plugins
fix UNLOZE+ReservedSlots
fix dependency unload error in a few plugins with LibraryExists in OnAllPluginsLoaded
This commit is contained in:
+9
-9
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user