Revision: 23136811755b
Author:   Josh Dye <[email protected]>
Date:     Tue Dec 27 14:37:45 2011
Log:      edited userdir for osx

http://code.google.com/p/pingus/source/detail?r=23136811755b

Modified:
 /src/util/system.cpp

=======================================
--- /src/util/system.cpp        Mon Nov 28 05:44:37 2011
+++ /src/util/system.cpp        Tue Dec 27 14:37:45 2011
@@ -299,6 +299,18 @@

   return tmpstr;

+#elif __APPLE__
+       char* homedir = getenv("HOME");
+
+       if (homedir)
+       {
+               return std::string(homedir) + "/Library/Application 
Support/pingus/";
+       }
+       else
+       {
+ raise_exception(std::runtime_error, "Environment variable $HOME not set, fix that and start again.");
+       }
+
 #else /* !WIN32 */
   char* homedir = getenv("HOME");


_______________________________________________
pingus-cvs mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/pingus-cvs

Reply via email to