mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-07-01 16:51:34 +00:00
Use a local plugins.cfg if available (allow us to run without installing)
This commit is contained in:
parent
4221824681
commit
8cb8481b37
1 changed files with 6 additions and 1 deletions
|
@ -312,7 +312,12 @@ void OMW::Engine::go()
|
||||||
std::string plugCfg = "plugins.cfg";
|
std::string plugCfg = "plugins.cfg";
|
||||||
std::string ogreCfg = "ogre.cfg";
|
std::string ogreCfg = "ogre.cfg";
|
||||||
ogreCfg.insert(0, cfgUserDir);
|
ogreCfg.insert(0, cfgUserDir);
|
||||||
plugCfg.insert(0, cfgDir);
|
|
||||||
|
//A local plugins.cfg will be used if it exist, otherwise look in the default path
|
||||||
|
if(!isFile(plugCfg.c_str()))
|
||||||
|
{
|
||||||
|
plugCfg.insert(0, cfgDir);
|
||||||
|
}
|
||||||
|
|
||||||
mOgre.configure(!isFile(ogreCfg.c_str()), cfgUserDir, plugCfg, false);
|
mOgre.configure(!isFile(ogreCfg.c_str()), cfgUserDir, plugCfg, false);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue