QTfrontend/util/DataManager.cpp
changeset 13284 b504131f7405
parent 12295 ac57d564efce
child 14553 e1ae6d8e84b0
equal deleted inserted replaced
13283:f816b9e73fcb 13284:b504131f7405
   170 
   170 
   171 QString DataManager::settingsFileName()
   171 QString DataManager::settingsFileName()
   172 {
   172 {
   173     if(m_settingsFileName.isEmpty())
   173     if(m_settingsFileName.isEmpty())
   174     {
   174     {
   175         QFile settingsFile("physfs://settings.ini");
   175         QFile settingsFile(cfgdir->absoluteFilePath("settings.ini"));
   176 
   176 
   177         if(!settingsFile.exists())
   177         if(!settingsFile.exists())
   178         {
   178         {
   179             QFile oldSettingsFile("physfs://hedgewars.ini");
   179             QFile oldSettingsFile(cfgdir->absoluteFilePath("hedgewars.ini"));
   180 
   180 
   181             settingsFile.open(QFile::WriteOnly);
   181             settingsFile.open(QFile::WriteOnly);
   182             settingsFile.close();
   182             settingsFile.close();
   183 
   183 
   184             if(oldSettingsFile.exists())
   184             if(oldSettingsFile.exists())