QTfrontend/main.cpp
changeset 1965 340bfd438ca5
parent 1940 bbdca883b5f9
child 1969 3b04393b1291
--- 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);