Move CCommandArgs into its own header.

This commit is contained in:
David Anderson
2015-08-31 00:07:37 -07:00
parent 23feee0e00
commit 32ba03538b
4 changed files with 83 additions and 52 deletions
+4 -3
View File
@@ -41,6 +41,7 @@
#include <IGameConfigs.h>
#include "frame_hooks.h"
#include "logic_bridge.h"
#include "provider.h"
#include <amtl/os/am-shared-library.h>
#include <amtl/os/am-path.h>
@@ -168,7 +169,7 @@ bool SourceModBase::InitializeSourceMod(char *error, size_t maxlength, bool late
ke::path::Format(m_SMBaseDir, sizeof(m_SMBaseDir), "%s/%s", g_BaseDir.c_str(), basepath);
ke::path::Format(m_SMRelDir, sizeof(m_SMRelDir), "%s", basepath);
if (!StartLogicBridge(error, maxlength))
if (!sCoreProviderImpl.LoadBridge(error, maxlength))
{
return false;
}
@@ -252,7 +253,7 @@ void SourceModBase::StartSourceMod(bool late)
enginePatch = SH_GET_CALLCLASS(engine);
gamedllPatch = SH_GET_CALLCLASS(gamedll);
InitLogicBridge();
sCoreProviderImpl.InitializeBridge();
/* Initialize CoreConfig to get the SourceMod base path properly - this parses core.cfg */
g_CoreConfig.Initialize();
@@ -486,7 +487,7 @@ void SourceModBase::CloseSourceMod()
}
/* Rest In Peace */
ShutdownLogicBridge();
sCoreProviderImpl.ShutdownBridge();
ShutdownJIT();
}