mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 15:35:23 +00:00
throw an exception when no default settings file is found, which indicates a packaging error
This commit is contained in:
parent
c227e4127c
commit
2b584300d6
@ -281,6 +281,8 @@ void OMW::Engine::go()
|
|||||||
settings.loadDefault(localdefault);
|
settings.loadDefault(localdefault);
|
||||||
else if (boost::filesystem::exists(globaldefault))
|
else if (boost::filesystem::exists(globaldefault))
|
||||||
settings.loadDefault(globaldefault);
|
settings.loadDefault(globaldefault);
|
||||||
|
else
|
||||||
|
throw std::runtime_error ("No default settings file found! Make sure the file \"settings-default.cfg\" was properly installed.");
|
||||||
|
|
||||||
// load user settings if they exist, otherwise just load the default settings as user settings
|
// load user settings if they exist, otherwise just load the default settings as user settings
|
||||||
const std::string settingspath = mCfgMgr.getUserPath().string() + "/settings.cfg";
|
const std::string settingspath = mCfgMgr.getUserPath().string() + "/settings.cfg";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user