diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2010-04-02 04:42:08 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2010-04-02 04:42:08 +0000 |
commit | f3d3024210b03733c779b1dbb75a96a87a070327 (patch) | |
tree | f55828c4202b4eb8226756753c56e0d491ac01d0 /games-puzzle | |
parent | Version bump. Remove old. Use sed magic for CFLAGS cleanup and dump the patch. (diff) | |
download | gentoo-2-f3d3024210b03733c779b1dbb75a96a87a070327.tar.gz gentoo-2-f3d3024210b03733c779b1dbb75a96a87a070327.tar.bz2 gentoo-2-f3d3024210b03733c779b1dbb75a96a87a070327.zip |
savegame patch, also from Chris Coleman
(Portage version: 2.1.7.17/cvs/Linux i686)
Diffstat (limited to 'games-puzzle')
-rw-r--r-- | games-puzzle/brainparty/ChangeLog | 6 | ||||
-rw-r--r-- | games-puzzle/brainparty/brainparty-0.5.ebuild | 4 | ||||
-rw-r--r-- | games-puzzle/brainparty/files/brainparty-0.5-savegame.patch | 27 |
3 files changed, 35 insertions, 2 deletions
diff --git a/games-puzzle/brainparty/ChangeLog b/games-puzzle/brainparty/ChangeLog index e64fa8e74418..a632a5fae362 100644 --- a/games-puzzle/brainparty/ChangeLog +++ b/games-puzzle/brainparty/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for games-puzzle/brainparty # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-puzzle/brainparty/ChangeLog,v 1.1 2010/04/02 03:23:17 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-puzzle/brainparty/ChangeLog,v 1.2 2010/04/02 04:42:08 mr_bones_ Exp $ + + 02 Apr 2010; Michael Sterrett <mr_bones_@gentoo.org> + brainparty-0.5.ebuild, +files/brainparty-0.5-savegame.patch: + savegame patch, also from Chris Coleman *brainparty-0.5 (02 Apr 2010) diff --git a/games-puzzle/brainparty/brainparty-0.5.ebuild b/games-puzzle/brainparty/brainparty-0.5.ebuild index e3e17b0a8857..0b3bd97fb806 100644 --- a/games-puzzle/brainparty/brainparty-0.5.ebuild +++ b/games-puzzle/brainparty/brainparty-0.5.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-puzzle/brainparty/brainparty-0.5.ebuild,v 1.1 2010/04/02 03:23:17 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-puzzle/brainparty/brainparty-0.5.ebuild,v 1.2 2010/04/02 04:42:08 mr_bones_ Exp $ EAPI=2 inherit eutils games @@ -33,6 +33,8 @@ src_prepare() { "/^int main(/ a\\\\tchdir(\"${GAMES_DATADIR}/${PN}\");\n" \ main.cpp \ || die "sed failed" + epatch "${FILESDIR}"/${P}-savegame.patch + } src_install() { diff --git a/games-puzzle/brainparty/files/brainparty-0.5-savegame.patch b/games-puzzle/brainparty/files/brainparty-0.5-savegame.patch new file mode 100644 index 000000000000..1b7b437ab446 --- /dev/null +++ b/games-puzzle/brainparty/files/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; |