QTfrontend/main.cpp
changeset 8918 512753ea4b1b
parent 8882 73d6d7f27945
child 9027 4b8e326251b3
--- a/QTfrontend/main.cpp	Wed Apr 17 11:24:06 2013 -0400
+++ b/QTfrontend/main.cpp	Thu Apr 18 00:41:27 2013 +0400
@@ -261,11 +261,11 @@
     engine->setWriteDir(cfgdir->absolutePath());
     engine->mountPacks();
 
-    DataManager::ensureFileExists("physfs://hedgewars.ini");
-
     QTranslator Translator;
     {
-        QSettings settings("physfs://hedgewars.ini", QSettings::IniFormat);
+        QSettings settings(DataManager::instance().settingsFileName(), QSettings::IniFormat);
+        settings.setIniCodec("UTF-8");
+
         QString cc = settings.value("misc/locale", QString()).toString();
         if (cc.isEmpty())
             cc = HWApplication::keyboardInputLocale().name();