QTfrontend/main.cpp
changeset 5756 b451fd21ff4c
parent 5307 dd53755e0fca
child 5849 b84b41aba275
equal deleted inserted replaced
5755:a079b4dea081 5756:b451fd21ff4c
   468         if (!tmpfile.exists()) tmpfile.setFileName(datadir->absolutePath() + "/Locale/hedgewars_" + cc);
   468         if (!tmpfile.exists()) tmpfile.setFileName(datadir->absolutePath() + "/Locale/hedgewars_" + cc);
   469         Translator.load(QFileInfo(tmpfile).absoluteFilePath());
   469         Translator.load(QFileInfo(tmpfile).absoluteFilePath());
   470         app.installTranslator(&Translator);
   470         app.installTranslator(&Translator);
   471     }
   471     }
   472 
   472 
       
   473 #ifdef _WIN32
   473     // Win32 registry setup (used for xfire detection etc. - don't set it if we're running in "portable" mode with a custom config dir)
   474     // Win32 registry setup (used for xfire detection etc. - don't set it if we're running in "portable" mode with a custom config dir)
   474 #ifdef _WIN32
       
   475     if(!custom_config)
   475     if(!custom_config)
   476     {
   476     {
   477         QSettings registry_hklm("HKEY_LOCAL_MACHINE", QSettings::NativeFormat);
   477         QSettings registry_hklm("HKEY_LOCAL_MACHINE", QSettings::NativeFormat);
   478         registry_hklm.setValue("Software/Hedgewars/Frontend", bindir->absolutePath().replace("/", "\\") + "\\hedgewars.exe");
   478         registry_hklm.setValue("Software/Hedgewars/Frontend", bindir->absolutePath().replace("/", "\\") + "\\hedgewars.exe");
   479         registry_hklm.setValue("Software/Hedgewars/Path", bindir->absolutePath().replace("/", "\\"));
   479         registry_hklm.setValue("Software/Hedgewars/Path", bindir->absolutePath().replace("/", "\\"));