Added support for CS:GO to cstrike extension (bug 5299, r=asherkin).

This commit is contained in:
Drifter
2012-05-26 18:31:23 -04:00
parent 236579a930
commit 3b18745bcd
18 changed files with 970 additions and 121 deletions
+3 -3
View File
@@ -59,9 +59,9 @@ ISDKTools *g_pSDKTools = NULL;
bool CStrike::SDK_OnLoad(char *error, size_t maxlength, bool late)
{
if (strcmp(g_pSM->GetGameFolderName(), "cstrike") != 0)
if (strcmp(g_pSM->GetGameFolderName(), "cstrike") != 0 && strcmp(g_pSM->GetGameFolderName(), "csgo") != 0)
{
snprintf(error, maxlength, "Cannot Load Cstrike Extension on mods other than CS:S");
snprintf(error, maxlength, "Cannot Load Cstrike Extension on mods other than CS:S and CS:GO");
return false;
}
@@ -73,7 +73,7 @@ bool CStrike::SDK_OnLoad(char *error, size_t maxlength, bool late)
{
if (error)
{
snprintf(error, maxlength, "Could not read sm-cstrike.games.txt: %s", conf_error);
snprintf(error, maxlength, "Could not read sm-cstrike.games: %s", conf_error);
}
return false;
}