mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-26 00:56:19 +00:00
Changed: #1023 PreDataPath and DataPath must be set in client_default.cfg
This commit is contained in:
parent
a3dcbb3463
commit
1214754d6e
1 changed files with 1 additions and 5 deletions
|
@ -1991,7 +1991,7 @@ void CClientConfig::init(const string &configFileName)
|
|||
#ifdef RYZOM_ETC_PREFIX
|
||||
if (!found)
|
||||
{
|
||||
defaultConfigFileName = std::string(RYZOM_ETC_PREFIX"/") + defaultConfigFileName;
|
||||
defaultConfigFileName = CPath::standardizePath(RYZOM_ETC_PREFIX) + defaultConfigFileName;
|
||||
if (CFile::isExists(defaultConfigFileName)) found = true;
|
||||
}
|
||||
#endif // RYZOM_ETC_PREFIX
|
||||
|
@ -2009,10 +2009,6 @@ void CClientConfig::init(const string &configFileName)
|
|||
nlwarning("CFG::init: creating '%s' with default values", configFileName.c_str ());
|
||||
}
|
||||
fprintf(fp, "RootConfigFilename = \"%s\";\n", defaultConfigFileName.c_str());
|
||||
#ifdef RYZOM_SHARE_PREFIX
|
||||
fprintf(fp, "PreDataPath = { \"user\", \"patch\", \"examples\", \"%s/data/fonts\", \"%s/data/gamedev.bnp\" };\n", RYZOM_SHARE_PREFIX, RYZOM_SHARE_PREFIX);
|
||||
fprintf(fp, "DataPath = { \"%s/data\" };\n", RYZOM_SHARE_PREFIX);
|
||||
#endif // RYZOM_SHARE_PREFIX
|
||||
fclose(fp);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue