mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 23:23:52 +00:00
plugins.cfg is global config
This commit is contained in:
parent
429775d485
commit
0b1f18cc12
1 changed files with 4 additions and 3 deletions
|
@ -307,13 +307,14 @@ void OMW::Engine::go()
|
|||
|
||||
std::cout << "Data directory: " << mDataDir << "\n";
|
||||
|
||||
std::string cfgDir = OMW::Path::getPath(OMW::Path::USER_CFG_PATH, "openmw", "");
|
||||
std::string cfgDir = OMW::Path::getPath(OMW::Path::GLOBAL_CFG_PATH, "openmw", "");
|
||||
std::string cfgUserDir = OMW::Path::getPath(OMW::Path::USER_CFG_PATH, "openmw", "");
|
||||
std::string plugCfg = "plugins.cfg";
|
||||
std::string ogreCfg = "ogre.cfg";
|
||||
ogreCfg.insert(0, cfgDir);
|
||||
ogreCfg.insert(0, cfgUserDir);
|
||||
plugCfg.insert(0, cfgDir);
|
||||
|
||||
mOgre.configure(!isFile(ogreCfg.c_str()), cfgDir, plugCfg, false);
|
||||
mOgre.configure(!isFile(ogreCfg.c_str()), cfgUserDir, plugCfg, false);
|
||||
|
||||
addResourcesDirectory (mDataDir / "Meshes");
|
||||
addResourcesDirectory (mDataDir / "Textures");
|
||||
|
|
Loading…
Reference in a new issue