# HG changeset patch
# User smaxx
# Date 1280142222 -7200
# Node ID acf5acc18522e65d35b7cd63c0d05a69b0bc4a74
# Parent 7d917b587547a24887ba2faa0f48799b4f90bfc8
Frontend:
* Added registry values for easier xfire detection (win32 only)
diff -r 7d917b587547 -r acf5acc18522 QTfrontend/about.cpp
--- a/QTfrontend/about.cpp Mon Jul 26 11:04:32 2010 +0200
+++ b/QTfrontend/about.cpp Mon Jul 26 13:03:42 2010 +0200
@@ -74,7 +74,7 @@
"Frontend improvements: Martin Minarik <ttsmj@pokec.sk>
"
"Frontend improvements: Kristian Lehmann <email@thexception.net>
"
"Mac OS X/iPhone port, OpenGL-ES conversion: Vittorio Giovara <vittorio.giovara@gmail.com>
"
- "Gamepad and Lua integration, misc effects: Mario Liebisch <mario.liebisch@googlemail.com>
"
+ "Gamepad and Lua integration, misc effects: Mario Liebisch <mario.liebisch@gmail.com>
"
"Many engine improvements and graphics: Carlos Vives <mail@carlosvives.es>
"
"Few engine and frontend improvements: Richard Karolyi <sheepluva@ercatec.net>
"
"Maze maps: Henning Kühn <prg@cooco.de>"
@@ -115,7 +115,7 @@
"English: Andrey Korotaev <unC0Rr@gmail.com>
"
"Finnish: Nina Kuisma <ninnnu@gmail.com>
"
"French: Antoine Turmel <geekshadow@gmail.com>
"
- "German: Peter Hüwe <PeterHuewe@gmx.de>, Mario Liebisch <mario.liebisch@googlemail.com>
"
+ "German: Peter Hüwe <PeterHuewe@gmx.de>, Mario Liebisch <mario.liebisch@gmail.com>
"
"Italian: Luca Bonora <bonora.luca@gmail.com>
"
"Japanese: ADAM Etienne <etienne.adam@gmail.com>
"
"Polish: Maciej Mroziński <mynick2@o2.pl>, Wojciech Latkowski <magikmagik17l@gmail.com>, Maciej Górny
"
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();
}