Gentoo Archives: gentoo-commits

From: "Alfredo Tupone (tupone)" <tupone@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-puzzle/brainparty/files: brainparty-0.61-savegame.patch
Date: Sun, 28 Nov 2010 19:47:12
Message-Id: 20101128194703.4AFB32003C@flycatcher.gentoo.org
1 tupone 10/11/28 19:47:03
2
3 Added: brainparty-0.61-savegame.patch
4 Log:
5 Version bump to 0.61 Bug #329209
6
7 (Portage version: 2.1.9.24/cvs/Linux i686)
8
9 Revision Changes Path
10 1.1 games-puzzle/brainparty/files/brainparty-0.61-savegame.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-puzzle/brainparty/files/brainparty-0.61-savegame.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-puzzle/brainparty/files/brainparty-0.61-savegame.patch?rev=1.1&content-type=text/plain
14
15 Index: brainparty-0.61-savegame.patch
16 ===================================================================
17 --- a/BPGame.cpp 2010-03-11 00:15:34.000000000 +0000
18 +++ b/BPGame.cpp 2010-04-02 04:17:02.640735675 +0100
19 @@ -1294,8 +1294,10 @@ void BPGame::LoadSettings() {
20 Secret1 = Secret2 = Secret3 = Secret4 = false;
21 NumUnlockedGames = 0;
22
23 + string file = string("/.brainparty");
24 + file.insert(0, getenv("HOME"));
25 ifstream ifs;
26 - ifs.open(".brainparty");
27 + ifs.open(file.c_str());
28
29 FirstRun = false;
30
31 @@ -1425,8 +1428,11 @@ void BPGame::LoadSettings() {
32 }
33
34 void BPGame::SaveSettings() {
35 + string file = string("/.brainparty");
36 + file.insert(0, getenv("HOME"));
37 +
38 ofstream savefile;
39 - savefile.open(".brainparty");
40 + savefile.open(file.c_str());
41 savefile << EnableSound << endl;
42 savefile << EnableMusic << endl;
43 savefile << endl;