Added a load-block for incorrect mods to TF2 and cstrike extensions.

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402173
This commit is contained in:
Matt Woodrow
2008-05-24 04:08:29 +00:00
parent 13cf254f08
commit dea6b06e2c
2 changed files with 13 additions and 3 deletions
+6
View File
@@ -54,6 +54,12 @@ extern sp_nativeinfo_t g_CSNatives[];
bool CStrike::SDK_OnLoad(char *error, size_t maxlength, bool late)
{
if (strcmp(g_pSM->GetGameFolderName(), "cstrike") != 0)
{
snprintf(error, maxlength, "Cannot Load Cstrike Extension on mods other than CS:S");
return false;
}
sharesys->AddDependency(myself, "bintools.ext", true, true);
char conf_error[255];