summaryrefslogtreecommitdiff
path: root/games/brainparty/patches/brainparty-0.5-savegame.patch
diff options
context:
space:
mode:
Diffstat (limited to 'games/brainparty/patches/brainparty-0.5-savegame.patch')
-rw-r--r--games/brainparty/patches/brainparty-0.5-savegame.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/games/brainparty/patches/brainparty-0.5-savegame.patch b/games/brainparty/patches/brainparty-0.5-savegame.patch
new file mode 100644
index 0000000000..1b7b437ab4
--- /dev/null
+++ b/games/brainparty/patches/brainparty-0.5-savegame.patch
@@ -0,0 +1,27 @@
+--- a/BPGame.cpp 2010-03-11 00:15:34.000000000 +0000
++++ b/BPGame.cpp 2010-04-02 04:17:02.640735675 +0100
+@@ -1294,8 +1294,10 @@ void BPGame::LoadSettings() {
+ Secret1 = Secret2 = Secret3 = Secret4 = false;
+ NumUnlockedGames = 0;
+
++ string file = string("/.brainparty");
++ file.insert(0, getenv("HOME"));
+ ifstream ifs;
+- ifs.open(".brainparty");
++ ifs.open(file.c_str());
+
+ FirstRun = false;
+
+@@ -1425,8 +1428,11 @@ void BPGame::LoadSettings() {
+ }
+
+ void BPGame::SaveSettings() {
++ string file = string("/.brainparty");
++ file.insert(0, getenv("HOME"));
++
+ ofstream savefile;
+- savefile.open(".brainparty");
++ savefile.open(file.c_str());
+ savefile << EnableSound << endl;
+ savefile << EnableMusic << endl;
+ savefile << endl;