Added gamedata and extension loading compat shims for Nuclear Dawn (bug 5813, r=asherkin).
Added gamedata and extension loading compat shims for Nuclear Dawn (
bug 5813, r=asherkin).
1.1 --- a/core/logic/ExtensionSys.cpp Mon Aug 12 02:08:34 2013 +0100
1.2 +++ b/core/logic/ExtensionSys.cpp Wed Aug 14 11:56:34 2013 -0400
1.3 @@ -101,6 +101,19 @@
1.4 goto found;
1.5 }
1.6 }
1.7 + else if (strcmp(smcore.gamesuffix, "2.nd") == 0)
1.8 + {
1.9 + g_pSM->BuildPath(Path_SM,
1.10 + path,
1.11 + PLATFORM_MAX_PATH,
1.12 + "extensions/%s.2.l4d2." PLATFORM_LIB_EXT,
1.13 + filename);
1.14 +
1.15 + if (libsys->IsPathFile(path))
1.16 + {
1.17 + goto found;
1.18 + }
1.19 + }
1.20
1.21 /* First see if there is an engine specific build! */
1.22 g_pSM->BuildPath(Path_SM,
2.1 --- a/core/logic/GameConfigs.cpp Mon Aug 12 02:08:34 2013 +0100
2.2 +++ b/core/logic/GameConfigs.cpp Wed Aug 14 11:56:34 2013 -0400
2.3 @@ -133,6 +133,8 @@
2.4
2.5 if (strcmp(m_pEngine, "css") == 0 || strcmp(m_pEngine, "dods") == 0 || strcmp(m_pEngine, "hl2dm") == 0 || strcmp(m_pEngine, "tf2") == 0)
2.6 this->SetBaseEngine("orangebox_valve");
2.7 + else if (strcmp(m_pEngine, "nucleardawn"))
2.8 + this->SetBaseEngine("left4dead2");
2.9 else
2.10 this->SetBaseEngine(NULL);
2.11 }