Allow CStrike ext to load on CS:GO "mods".

They theoretically cannot have any binary changes since there is no
real SDK, so it should be compatible.
This commit is contained in:
Nicholas Hastings 2016-12-25 08:31:39 -05:00
parent 600f7e2342
commit 47d22a3051

View File

@ -59,11 +59,13 @@ ISDKTools *g_pSDKTools = NULL;
bool CStrike::SDK_OnLoad(char *error, size_t maxlength, bool late) bool CStrike::SDK_OnLoad(char *error, size_t maxlength, bool late)
{ {
if (strcmp(g_pSM->GetGameFolderName(), "cstrike") != 0 && strcmp(g_pSM->GetGameFolderName(), "csgo") != 0) #if SOURCE_ENGINE != SE_CSGO
if (strcmp(g_pSM->GetGameFolderName(), "cstrike") != 0)
{ {
snprintf(error, maxlength, "Cannot Load Cstrike Extension on mods other than CS:S and CS:GO"); snprintf(error, maxlength, "Cannot Load Cstrike Extension on mods other than CS:S and CS:GO");
return false; return false;
} }
#endif
sharesys->AddDependency(myself, "bintools.ext", true, true); sharesys->AddDependency(myself, "bintools.ext", true, true);
sharesys->AddDependency(myself, "sdktools.ext", false, true); sharesys->AddDependency(myself, "sdktools.ext", false, true);