Fix undefined gpGlobals
This commit is contained in:
parent
9d8bc1f420
commit
7c31fdc87b
@ -36,6 +36,8 @@
|
|||||||
* @brief Implement extension code here.
|
* @brief Implement extension code here.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
CGlobalVars *gpGlobals = NULL;
|
||||||
|
|
||||||
Outputinfo g_Outputinfo; /**< Global singleton for extension's main interface */
|
Outputinfo g_Outputinfo; /**< Global singleton for extension's main interface */
|
||||||
|
|
||||||
SMEXT_LINK(&g_Outputinfo);
|
SMEXT_LINK(&g_Outputinfo);
|
||||||
@ -310,3 +312,9 @@ void Outputinfo::SDK_OnAllLoaded()
|
|||||||
{
|
{
|
||||||
sharesys->AddNatives(myself, MyNatives);
|
sharesys->AddNatives(myself, MyNatives);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool Outputinfo::SDK_OnMetamodLoad(ISmmAPI *ismm, char *error, size_t maxlength, bool late)
|
||||||
|
{
|
||||||
|
gpGlobals = ismm->GetCGlobals();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
@ -91,7 +91,7 @@ public:
|
|||||||
* @param late Whether or not Metamod considers this a late load.
|
* @param late Whether or not Metamod considers this a late load.
|
||||||
* @return True to succeed, false to fail.
|
* @return True to succeed, false to fail.
|
||||||
*/
|
*/
|
||||||
//virtual bool SDK_OnMetamodLoad(ISmmAPI *ismm, char *error, size_t maxlength, bool late);
|
virtual bool SDK_OnMetamodLoad(ISmmAPI *ismm, char *error, size_t maxlength, bool late);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Called when Metamod is detaching, after the extension version is called.
|
* @brief Called when Metamod is detaching, after the extension version is called.
|
||||||
@ -116,4 +116,6 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif // _INCLUDE_SOURCEMOD_EXTENSION_PROPER_H_
|
#endif // _INCLUDE_SOURCEMOD_EXTENSION_PROPER_H_
|
||||||
|
Loading…
Reference in New Issue
Block a user