Added gamedata and extension loading compat shims for Nuclear Dawn (bug 5813, r=asherkin).
This commit is contained in:
parent
d188859fc5
commit
cfc6b2fee9
@ -130,6 +130,17 @@ CLocalExtension::CLocalExtension(const char *filename)
|
|||||||
"extensions/%s.2.ep2v." PLATFORM_LIB_EXT,
|
"extensions/%s.2.ep2v." PLATFORM_LIB_EXT,
|
||||||
filename);
|
filename);
|
||||||
|
|
||||||
|
if (g_LibSys.IsPathFile(path))
|
||||||
|
{
|
||||||
|
goto found;
|
||||||
|
}
|
||||||
|
#elif SOURCE_ENGINE == SE_NUCLEARDAWN
|
||||||
|
g_SourceMod.BuildPath(Path_SM,
|
||||||
|
path,
|
||||||
|
PLATFORM_MAX_PATH,
|
||||||
|
"extensions/%s.2.l4d2." PLATFORM_LIB_EXT,
|
||||||
|
filename);
|
||||||
|
|
||||||
if (g_LibSys.IsPathFile(path))
|
if (g_LibSys.IsPathFile(path))
|
||||||
{
|
{
|
||||||
goto found;
|
goto found;
|
||||||
|
@ -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)
|
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");
|
this->SetBaseEngine("orangebox_valve");
|
||||||
|
else if (strcmp(m_pEngine, "nucleardawn"))
|
||||||
|
this->SetBaseEngine("left4dead2");
|
||||||
else
|
else
|
||||||
this->SetBaseEngine(NULL);
|
this->SetBaseEngine(NULL);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user