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:
parent
600f7e2342
commit
47d22a3051
@ -59,11 +59,13 @@ ISDKTools *g_pSDKTools = NULL;
|
||||
|
||||
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");
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
sharesys->AddDependency(myself, "bintools.ext", true, true);
|
||||
sharesys->AddDependency(myself, "sdktools.ext", false, true);
|
||||
|
Loading…
Reference in New Issue
Block a user