[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] [pingus] push by address@hidden - edited userdir for osx on
From: |
pingus |
Subject: |
[Pingus-CVS] [pingus] push by address@hidden - edited userdir for osx on 2011-12-27 22:45 GMT |
Date: |
Tue, 27 Dec 2011 22:46:03 +0000 |
Revision: 23136811755b
Author: Josh Dye <address@hidden>
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");
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] [pingus] push by address@hidden - edited userdir for osx on 2011-12-27 22:45 GMT,
pingus <=