QTfrontend/main.cpp
changeset 11851 5edd66c2d422
parent 11488 637fb0558a73
child 12661 1dc160048a0c
equal deleted inserted replaced
11850:0025eb20d6f9 11851:5edd66c2d422
   344         app.installTranslator(&TranslatorQt);
   344         app.installTranslator(&TranslatorQt);
   345         app.setLayoutDirection(QLocale(cc).textDirection());
   345         app.setLayoutDirection(QLocale(cc).textDirection());
   346     }
   346     }
   347 
   347 
   348 #ifdef _WIN32
   348 #ifdef _WIN32
   349     // Win32 registry setup (used for xfire detection etc. - don't set it if we're running in "portable" mode with a custom config dir)
   349     // Win32 registry setup (used for external software detection etc.
       
   350     // don't set it if running in "portable" mode with a custom config dir)
   350     if(!custom_config)
   351     if(!custom_config)
   351     {
   352     {
   352         QSettings registry_hklm("HKEY_LOCAL_MACHINE", QSettings::NativeFormat);
   353         QSettings registry_hklm("HKEY_LOCAL_MACHINE", QSettings::NativeFormat);
   353         registry_hklm.setValue("Software/Hedgewars/Frontend", bindir->absolutePath().replace("/", "\\") + "\\hedgewars.exe");
   354         registry_hklm.setValue("Software/Hedgewars/Frontend", bindir->absolutePath().replace("/", "\\") + "\\hedgewars.exe");
   354         registry_hklm.setValue("Software/Hedgewars/Path", bindir->absolutePath().replace("/", "\\"));
   355         registry_hklm.setValue("Software/Hedgewars/Path", bindir->absolutePath().replace("/", "\\"));