--- a/QTfrontend/main.cpp Sun Apr 12 12:50:43 2009 +0000
+++ b/QTfrontend/main.cpp Sun Apr 12 12:51:25 2009 +0000
@@ -250,12 +250,21 @@
bindir->cd("bin"); // workaround over NSIS installer
cfgdir->setPath(cfgdir->homePath());
+#ifdef __APPLE__
+ if (checkForDir(cfgdir->absolutePath() + "/Library/Application Support/Hedgewars"))
+ {
+ checkForDir(cfgdir->absolutePath() + "/Library/Application Support/Hedgewars/Demos");
+ checkForDir(cfgdir->absolutePath() + "/Library/Application Support/Hedgewars/Saves");
+ }
+ cfgdir->cd("/Library/Application Support/Hedgewars");
+#else
if (checkForDir(cfgdir->absolutePath() + "/.hedgewars"))
{
checkForDir(cfgdir->absolutePath() + "/.hedgewars/Demos");
checkForDir(cfgdir->absolutePath() + "/.hedgewars/Saves");
}
cfgdir->cd(".hedgewars");
+#endif
datadir->cd(bindir->absolutePath());
datadir->cd(*cDataDir);