mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-01-30 19:52:17 +01:00
Removed internal use of callclass for IServerGameDLL::DLLShutdown()
--HG-- extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40396
This commit is contained in:
parent
96ed622318
commit
ca753a414a
@ -56,7 +56,6 @@ bool bInFirstLevel = true;
|
|||||||
bool gParsedGameInfo = false;
|
bool gParsedGameInfo = false;
|
||||||
bool bGameInit = false;
|
bool bGameInit = false;
|
||||||
SourceHook::List<GameDllInfo *> gamedll_list;
|
SourceHook::List<GameDllInfo *> gamedll_list;
|
||||||
SourceHook::CallClass<IServerGameDLL> *g_GameDllPatch;
|
|
||||||
int g_GameDllVersion = 0;
|
int g_GameDllVersion = 0;
|
||||||
int g_VspVersion = 0;
|
int g_VspVersion = 0;
|
||||||
const char VSPIFACE[] = "ISERVERPLUGINCALLBACKS";
|
const char VSPIFACE[] = "ISERVERPLUGINCALLBACKS";
|
||||||
@ -146,8 +145,6 @@ bool DLLInit(CreateInterfaceFn engineFactory, CreateInterfaceFn physicsFactory,
|
|||||||
/* Initialize our console hooks */
|
/* Initialize our console hooks */
|
||||||
ConCommandBaseMgr::OneTimeInit(static_cast<IConCommandBaseAccessor *>(&g_SMConVarAccessor));
|
ConCommandBaseMgr::OneTimeInit(static_cast<IConCommandBaseAccessor *>(&g_SMConVarAccessor));
|
||||||
|
|
||||||
g_GameDllPatch = SH_GET_CALLCLASS(g_GameDll.pGameDLL);
|
|
||||||
|
|
||||||
if (g_GameDll.pGameClients)
|
if (g_GameDll.pGameClients)
|
||||||
{
|
{
|
||||||
SH_ADD_HOOK_STATICFUNC(IServerGameClients, ClientCommand, g_GameDll.pGameClients, ClientCommand_handler, false);
|
SH_ADD_HOOK_STATICFUNC(IServerGameClients, ClientCommand, g_GameDll.pGameClients, ClientCommand_handler, false);
|
||||||
@ -483,10 +480,7 @@ void DLLShutdown_handler()
|
|||||||
g_SMConVarAccessor.MarkCommandsAsGameDLL();
|
g_SMConVarAccessor.MarkCommandsAsGameDLL();
|
||||||
g_SMConVarAccessor.UnregisterGameDLLCommands();
|
g_SMConVarAccessor.UnregisterGameDLLCommands();
|
||||||
|
|
||||||
SH_CALL(g_GameDllPatch, &IServerGameDLL::DLLShutdown)();
|
SH_CALL(g_GameDll.pGameDLL, &IServerGameDLL::DLLShutdown)();
|
||||||
|
|
||||||
SH_RELEASE_CALLCLASS(g_GameDllPatch);
|
|
||||||
g_GameDllPatch = NULL;
|
|
||||||
|
|
||||||
g_SourceHook.CompleteShutdown();
|
g_SourceHook.CompleteShutdown();
|
||||||
|
|
||||||
|
@ -122,7 +122,4 @@ extern int g_VspVersion;
|
|||||||
|
|
||||||
extern bool bGameInit;
|
extern bool bGameInit;
|
||||||
|
|
||||||
/** @brief Global CallClass for IServerGameDLL */
|
|
||||||
extern SourceHook::CallClass<IServerGameDLL> *g_GameDllPatch;
|
|
||||||
|
|
||||||
#endif //_INCLUDE_SOURCEMM_H
|
#endif //_INCLUDE_SOURCEMM_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user