mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 06:53:53 +00:00
Changed the order of preference for the configuration files
This commit is contained in:
parent
b004e2479c
commit
eea8773be1
1 changed files with 5 additions and 5 deletions
|
@ -164,15 +164,15 @@ void MainDialog::createPages()
|
||||||
dataDirs = readConfig(file.fileName());
|
dataDirs = readConfig(file.fileName());
|
||||||
}
|
}
|
||||||
|
|
||||||
// User location
|
// Local location
|
||||||
file.setFileName(QString::fromStdString((mCfgMgr.getUserPath()/"openmw.cfg").string()));
|
file.setFileName("./openmw.cfg");
|
||||||
|
|
||||||
if (file.exists()) {
|
if (file.exists()) {
|
||||||
dataDirs = readConfig(file.fileName());
|
dataDirs = readConfig(file.fileName());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Local location
|
// User location
|
||||||
file.setFileName("./openmw.cfg");
|
file.setFileName(QString::fromStdString((mCfgMgr.getUserPath()/"openmw.cfg").string()));
|
||||||
|
|
||||||
if (file.exists()) {
|
if (file.exists()) {
|
||||||
dataDirs = readConfig(file.fileName());
|
dataDirs = readConfig(file.fileName());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue