Browse Source

now does what the previous commit was supposed to make it do, but with fewer bugs

bill@Ixion 16 years ago
parent
commit
ac16935782

+ 1 - 1
src/modules/filesystem/physfs/Filesystem.cpp

@@ -177,7 +177,7 @@ namespace physfs
 #ifdef WINDOWS
 #ifdef WINDOWS
 		return getenv("APPDATA");
 		return getenv("APPDATA");
 #elif defined(LOVE_MACOSX)
 #elif defined(LOVE_MACOSX)
-		std::string udir(getUserDirectory());
+		std::string udir = getUserDirectory();
 		udir.append("/Library/Application Support");
 		udir.append("/Library/Application Support");
 		return udir.c_str();
 		return udir.c_str();
 #else
 #else

+ 5 - 1
src/modules/filesystem/physfs/Filesystem.h

@@ -49,7 +49,11 @@
 #	define LOVE_PATH_SEPARATOR "/"
 #	define LOVE_PATH_SEPARATOR "/"
 #	define LOVE_MAX_PATH _MAX_PATH
 #	define LOVE_MAX_PATH _MAX_PATH
 #else
 #else
-#	define LOVE_APPDATA_FOLDER ".love"
+#	ifdef LOVE_MACOSX
+#		define LOVE_APPDATA_FOLDER "LOVE"
+#	else
+#		define LOVE_APPDATA_FOLDER ".love"
+#	endif
 #	define LOVE_PATH_SEPARATOR "/"
 #	define LOVE_PATH_SEPARATOR "/"
 #	define LOVE_MAX_PATH MAXPATHLEN
 #	define LOVE_MAX_PATH MAXPATHLEN
 #endif
 #endif