Skip to content

Commit

Permalink
Merge pull request #3 from pvdk/config
Browse files Browse the repository at this point in the history
Changed the order of preference for the configuration files
  • Loading branch information
lgromanowski committed Feb 10, 2012
2 parents b004e24 + eea8773 commit 4fae3bd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apps/launcher/maindialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,15 +164,15 @@ void MainDialog::createPages()
dataDirs = readConfig(file.fileName());
}

// User location
file.setFileName(QString::fromStdString((mCfgMgr.getUserPath()/"openmw.cfg").string()));
// Local location
file.setFileName("./openmw.cfg");

if (file.exists()) {
dataDirs = readConfig(file.fileName());
}

// Local location
file.setFileName("./openmw.cfg");

// User location
file.setFileName(QString::fromStdString((mCfgMgr.getUserPath()/"openmw.cfg").string()));
if (file.exists()) {
dataDirs = readConfig(file.fileName());
}
Expand Down

0 comments on commit 4fae3bd

Please sign in to comment.