Permalink
Browse files

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.
  • Loading branch information...
1 parent 600f7e2 commit 47d22a305104c100bc60410e133dec1c1edf6cc4 @psychonic psychonic committed Dec 25, 2016
Showing with 3 additions and 1 deletion.
  1. +3 −1 extensions/cstrike/extension.cpp
@@ -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);

0 comments on commit 47d22a3

Please sign in to comment.