summaryrefslogtreecommitdiffstats
path: root/games/xu4/profile_path.diff
diff options
context:
space:
mode:
author B. Watson <yalhcru@gmail.com>2011-10-29 21:44:45 -0200
committer Niels Horn <niels.horn@slackbuilds.org>2011-10-29 21:44:45 -0200
commitca2058fb861b3610d6abbc6c2fc00233e119616e (patch)
tree240480b5a851081f4e6eb9c57eed1cf31f3b0e9f /games/xu4/profile_path.diff
parent15b7a9ab86b823c45942dc3a9c4c013c2d7f7977 (diff)
downloadslackbuilds-ca2058fb861b3610d6abbc6c2fc00233e119616e.tar.gz
slackbuilds-ca2058fb861b3610d6abbc6c2fc00233e119616e.tar.xz
games/xu4: Added (Ultima IV remake)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'games/xu4/profile_path.diff')
-rw-r--r--games/xu4/profile_path.diff29
1 files changed, 29 insertions, 0 deletions
diff --git a/games/xu4/profile_path.diff b/games/xu4/profile_path.diff
new file mode 100644
index 0000000000..b436ac55d9
--- /dev/null
+++ b/games/xu4/profile_path.diff
@@ -0,0 +1,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;