Readded missing hunk from 394499aa9d33 merge for ep2v extension loading backcompat.

This commit is contained in:
Nicholas Hastings 2013-08-03 19:10:23 -04:00
parent a1a483fa27
commit 3e4f7af96a

View File

@ -108,6 +108,24 @@ CLocalExtension::CLocalExtension(const char *filename)
goto normal;
}
/* COMPAT HACK: One-halfth, if ep2v, see if there is an engine specific build in the new place with old naming */
if (strcmp(smcore.gamesuffix, "2.tf2") == 0
|| strcmp(smcore.gamesuffix, "2.dods") == 0
|| strcmp(smcore.gamesuffix, "2.hl2dm") == 0
)
{
g_pSM->BuildPath(Path_SM,
path,
PLATFORM_MAX_PATH,
"extensions/%s.2.ep2v." PLATFORM_LIB_EXT,
filename);
if (libsys->IsPathFile(path))
{
goto found;
}
}
/* Zeroth, see if there is an engine specific build in the new place. */
g_SourceMod.BuildPath(Path_SM,
path,