diff -r 7d917b587547 -r acf5acc18522 QTfrontend/main.cpp --- a/QTfrontend/main.cpp Mon Jul 26 11:04:32 2010 +0200 +++ b/QTfrontend/main.cpp Mon Jul 26 13:03:42 2010 +0200 @@ -404,10 +404,20 @@ app.installTranslator(&Translator); } + // Win32 registry setup (used for xfire detection etc. - don't set it if we're running in "portable" mode with a custom config dir) +#ifdef _WIN32 + if(cConfigDir->length() == 0) + { + QSettings registry(QSettings::NativeFormat, QSettings::UserScope, "Hedgewars Project", "Hedgewars"); + QFileInfo f(argv[0]); + registry.setValue("file", f.absoluteFilePath()); + registry.setValue("path", f.absolutePath()); + registry.setValue("version", cVersionString); + } +#endif HWForm *Form = new HWForm(); - Form->show(); return app.exec(); }