Fixed build.
This commit is contained in:
parent
3e4f7af96a
commit
3a5cf80e2b
@ -108,24 +108,6 @@ CLocalExtension::CLocalExtension(const char *filename)
|
|||||||
goto normal;
|
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. */
|
/* Zeroth, see if there is an engine specific build in the new place. */
|
||||||
g_SourceMod.BuildPath(Path_SM,
|
g_SourceMod.BuildPath(Path_SM,
|
||||||
path,
|
path,
|
||||||
@ -138,6 +120,20 @@ CLocalExtension::CLocalExtension(const char *filename)
|
|||||||
goto found;
|
goto found;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if SOURCE_ENGINE == SE_TF2 || SOURCE_ENGINE == SE_DODS || SOURCE_ENGINE == SE_HL2DM
|
||||||
|
/* COMPAT HACK: One-halfth, if ep2v, see if there is an engine specific build in the new place with old naming */
|
||||||
|
g_SourceMod.BuildPath(Path_SM,
|
||||||
|
path,
|
||||||
|
PLATFORM_MAX_PATH,
|
||||||
|
"extensions/%s.2.ep2v." PLATFORM_LIB_EXT,
|
||||||
|
filename);
|
||||||
|
|
||||||
|
if (g_LibSys.IsPathFile(path))
|
||||||
|
{
|
||||||
|
goto found;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* First see if there is an engine specific build! */
|
/* First see if there is an engine specific build! */
|
||||||
g_SourceMod.BuildPath(Path_SM,
|
g_SourceMod.BuildPath(Path_SM,
|
||||||
path,
|
path,
|
||||||
|
Loading…
Reference in New Issue
Block a user