|
|
@ -424,11 +424,11 @@ bool Launcher::MainDialog::setupGraphicsSettings()
|
|
|
|
mEngineSettings.clear();
|
|
|
|
mEngineSettings.clear();
|
|
|
|
|
|
|
|
|
|
|
|
// Create the settings manager and load default settings file
|
|
|
|
// Create the settings manager and load default settings file
|
|
|
|
const std::string localDefault = (mCfgMgr.getLocalPath() / "settings-default.cfg").string();
|
|
|
|
const std::string localDefault = (mCfgMgr.getLocalPath() / "defaults.bin").string();
|
|
|
|
const std::string globalDefault = (mCfgMgr.getGlobalPath() / "settings-default.cfg").string();
|
|
|
|
const std::string globalDefault = (mCfgMgr.getGlobalPath() / "defaults.bin").string();
|
|
|
|
std::string defaultPath;
|
|
|
|
std::string defaultPath;
|
|
|
|
|
|
|
|
|
|
|
|
// Prefer the settings-default.cfg in the current directory.
|
|
|
|
// Prefer the defaults.bin in the current directory.
|
|
|
|
if (boost::filesystem::exists(localDefault))
|
|
|
|
if (boost::filesystem::exists(localDefault))
|
|
|
|
defaultPath = localDefault;
|
|
|
|
defaultPath = localDefault;
|
|
|
|
else if (boost::filesystem::exists(globalDefault))
|
|
|
|
else if (boost::filesystem::exists(globalDefault))
|
|
|
|