From 47d22a305104c100bc60410e133dec1c1edf6cc4 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Sun, 25 Dec 2016 08:31:39 -0500 Subject: [PATCH] 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. --- extensions/cstrike/extension.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extensions/cstrike/extension.cpp b/extensions/cstrike/extension.cpp index c0a309d0..4a736fad 100644 --- a/extensions/cstrike/extension.cpp +++ b/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);