summaryrefslogtreecommitdiffstats
path: root/games/xu4/profile_path.diff
blob: b436ac55d98f1ef03bf149a76c3d3c06d9ad11f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
diff -Naur xu4-20111026_svn/src/settings.cpp xu4-20111026_svn.patched//src/settings.cpp
--- xu4-20111026_svn/src/settings.cpp	2011-06-23 13:36:06.000000000 -0400
+++ xu4-20111026_svn.patched//src/settings.cpp	2011-10-27 17:27:02.000000000 -0400
@@ -81,12 +81,6 @@
  * Initialize the settings.
  */
 void Settings::init(const bool useProfile, const string profileName) {
-	if (useProfile) {
-		userPath = "./profiles/";
-		userPath += profileName.c_str();
-		userPath += "/";
-	} else {
-
 #if defined(MACOSX)
             FSRef folder;
             OSErr err = FSFindFolder(kUserDomain, kApplicationSupportFolderType, kCreateFolder, &folder);
@@ -150,7 +144,12 @@
         userPath = "./";
 #endif
 
+	if (useProfile) {
+		userPath += "profiles/";
+		userPath += profileName.c_str();
+		userPath += "/";
 	}
+
     FileSystem::createDirectory(userPath);
 
     filename = userPath + SETTINGS_BASE_FILENAME;