diff --git a/core/ExtensionSys.cpp b/core/ExtensionSys.cpp index ed39b676..d1bd929f 100644 --- a/core/ExtensionSys.cpp +++ b/core/ExtensionSys.cpp @@ -108,24 +108,6 @@ 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, @@ -138,6 +120,20 @@ CLocalExtension::CLocalExtension(const char *filename) 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! */ g_SourceMod.BuildPath(Path_SM, path,