mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-12-09 11:28:33 +00:00
Build fixes
This commit is contained in:
parent
799f1660a3
commit
2ce27062b0
@ -30,6 +30,11 @@
|
|||||||
#include <KeyValues.h>
|
#include <KeyValues.h>
|
||||||
#include <filesystem.h>
|
#include <filesystem.h>
|
||||||
|
|
||||||
|
#if SOURCE_ENGINE == SE_EPISODEONE
|
||||||
|
#include <tier0/icommandline.h>
|
||||||
|
#include <setjmp.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
ConCommand meta_local_cmd("meta", LocalCommand_Meta, "Metamod:Source control options");
|
ConCommand meta_local_cmd("meta", LocalCommand_Meta, "Metamod:Source control options");
|
||||||
|
|
||||||
static SourceProvider g_SourceProvider;
|
static SourceProvider g_SourceProvider;
|
||||||
@ -106,7 +111,7 @@ void SourceProvider::Notify_DLLInit_Pre(CreateInterfaceFn engineFactory,
|
|||||||
CacheUserMessages();
|
CacheUserMessages();
|
||||||
|
|
||||||
#if SOURCE_ENGINE < SE_ORANGEBOX
|
#if SOURCE_ENGINE < SE_ORANGEBOX
|
||||||
if (!g_SMConVarAccessor.InitConCommandBaseList())
|
if (!m_ConVarAccessor.InitConCommandBaseList())
|
||||||
{
|
{
|
||||||
/* This is very unlikely considering it's old engine */
|
/* This is very unlikely considering it's old engine */
|
||||||
mm_LogMessage("[META] Warning: Failed to find ConCommandBase list!");
|
mm_LogMessage("[META] Warning: Failed to find ConCommandBase list!");
|
||||||
@ -234,7 +239,7 @@ int SourceProvider::DetermineSourceEngine()
|
|||||||
#elif SOURCE_ENGINE == SE_BMS
|
#elif SOURCE_ENGINE == SE_BMS
|
||||||
return SOURCE_ENGINE_BMS;
|
return SOURCE_ENGINE_BMS;
|
||||||
#elif SOURCE_ENGINE == SE_EPISODEONE
|
#elif SOURCE_ENGINE == SE_EPISODEONE
|
||||||
return g_bOriginalEngine ? SOURCE_ENGINE_ORIGINAL : SOURCE_ENGINE_EPISODEONE;
|
return bOriginalEngine ? SOURCE_ENGINE_ORIGINAL : SOURCE_ENGINE_EPISODEONE;
|
||||||
#elif SOURCE_ENGINE == SE_MOCK
|
#elif SOURCE_ENGINE == SE_MOCK
|
||||||
return SOURCE_ENGINE_MOCK;
|
return SOURCE_ENGINE_MOCK;
|
||||||
#elif SOURCE_ENGINE == SE_PVKII
|
#elif SOURCE_ENGINE == SE_PVKII
|
||||||
@ -289,7 +294,7 @@ const char* SourceProvider::GetEngineDescription() const
|
|||||||
#elif SOURCE_ENGINE == SE_CSGO
|
#elif SOURCE_ENGINE == SE_CSGO
|
||||||
return "Counter-Strike: Global Offensive (2012)";
|
return "Counter-Strike: Global Offensive (2012)";
|
||||||
#elif SOURCE_ENGINE == SE_EPISODEONE
|
#elif SOURCE_ENGINE == SE_EPISODEONE
|
||||||
if (g_bOriginalEngine)
|
if (bOriginalEngine)
|
||||||
{
|
{
|
||||||
return "Original (pre-Episode 1)";
|
return "Original (pre-Episode 1)";
|
||||||
}
|
}
|
||||||
@ -467,7 +472,11 @@ void LocalCommand_Meta()
|
|||||||
|
|
||||||
if (nullptr != g_SourceProvider.m_pCallbacks)
|
if (nullptr != g_SourceProvider.m_pCallbacks)
|
||||||
{
|
{
|
||||||
|
#if SOURCE_ENGINE >= SE_ORANGEBOX
|
||||||
GlobCommand cmd(&args);
|
GlobCommand cmd(&args);
|
||||||
|
#else
|
||||||
|
GlobCommand cmd;
|
||||||
|
#endif
|
||||||
g_SourceProvider.m_pCallbacks->OnCommand_Meta(&cmd);
|
g_SourceProvider.m_pCallbacks->OnCommand_Meta(&cmd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -26,6 +26,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "provider_source.h"
|
#include "provider_source.h"
|
||||||
|
#include "metamod_util.h"
|
||||||
|
|
||||||
#if SOURCE_ENGINE >= SE_ORANGEBOX
|
#if SOURCE_ENGINE >= SE_ORANGEBOX
|
||||||
#else
|
#else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user