now uses the proper appdata directory on Mac OS X

This commit is contained in:
bill@Ixion
2009-09-19 19:59:23 -05:00
parent 4b4cf36579
commit a45500c1ff
2 changed files with 50 additions and 2 deletions
@@ -176,6 +176,10 @@ namespace physfs
{
#ifdef WINDOWS
return getenv("APPDATA");
#elif defined(LOVE_MACOSX)
std::string udir(getUserDirectory());
udir.append("/Library/Application Support");
return udir.c_str();
#else
return getUserDirectory();
#endif