equal
deleted
inserted
replaced
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()) |