diff --git a/core/logic/ExtensionSys.cpp b/core/logic/ExtensionSys.cpp index 61989e5a..05b46296 100644 --- a/core/logic/ExtensionSys.cpp +++ b/core/logic/ExtensionSys.cpp @@ -101,6 +101,19 @@ CLocalExtension::CLocalExtension(const char *filename) goto found; } } + else if (strcmp(smcore.gamesuffix, "2.nd") == 0) + { + g_pSM->BuildPath(Path_SM, + path, + PLATFORM_MAX_PATH, + "extensions/%s.2.l4d2." PLATFORM_LIB_EXT, + filename); + + if (libsys->IsPathFile(path)) + { + goto found; + } + } /* First see if there is an engine specific build! */ g_pSM->BuildPath(Path_SM, diff --git a/core/logic/GameConfigs.cpp b/core/logic/GameConfigs.cpp index 2cd305f2..dfab6bbe 100644 --- a/core/logic/GameConfigs.cpp +++ b/core/logic/GameConfigs.cpp @@ -133,6 +133,8 @@ CGameConfig::CGameConfig(const char *file, const char *engine) if (strcmp(m_pEngine, "css") == 0 || strcmp(m_pEngine, "dods") == 0 || strcmp(m_pEngine, "hl2dm") == 0 || strcmp(m_pEngine, "tf2") == 0) this->SetBaseEngine("orangebox_valve"); + else if (strcmp(m_pEngine, "nucleardawn")) + this->SetBaseEngine("left4dead2"); else this->SetBaseEngine(NULL); }