From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- .../brainparty/files/brainparty-0.61-gcc49.patch | 20 ++++++++++++++++ .../files/brainparty-0.61-gnu_cxx-hash.patch | 11 +++++++++ .../files/brainparty-0.61-savegame.patch | 27 ++++++++++++++++++++++ 3 files changed, 58 insertions(+) create mode 100644 games-puzzle/brainparty/files/brainparty-0.61-gcc49.patch create mode 100644 games-puzzle/brainparty/files/brainparty-0.61-gnu_cxx-hash.patch create mode 100644 games-puzzle/brainparty/files/brainparty-0.61-savegame.patch (limited to 'games-puzzle/brainparty/files') diff --git a/games-puzzle/brainparty/files/brainparty-0.61-gcc49.patch b/games-puzzle/brainparty/files/brainparty-0.61-gcc49.patch new file mode 100644 index 000000000000..7147cd460be6 --- /dev/null +++ b/games-puzzle/brainparty/files/brainparty-0.61-gcc49.patch @@ -0,0 +1,20 @@ +--- a/BPList.h ++++ a/BPList.h +@@ -138,7 +138,7 @@ + ~BPPList(); + void Add(T item); + bool Contains(T item); +- void Clear(bool safe_delete); ++ void Clear(bool safe_delete = true); + int IndexOf(T item); + void Insert(int pos, T item); + void Remove(T item); +@@ -171,7 +171,7 @@ + } + + template +-void BPPList::Clear(bool safe_delete = true) { ++void BPPList::Clear(bool safe_delete) { + if (safe_delete) { + for (int i = data.size() - 1; i >= 0; --i) { + T item = data[i]; diff --git a/games-puzzle/brainparty/files/brainparty-0.61-gnu_cxx-hash.patch b/games-puzzle/brainparty/files/brainparty-0.61-gnu_cxx-hash.patch new file mode 100644 index 000000000000..8d933462673b --- /dev/null +++ b/games-puzzle/brainparty/files/brainparty-0.61-gnu_cxx-hash.patch @@ -0,0 +1,11 @@ +--- a/WordList.h ++++ b/WordList.h +@@ -35,7 +35,7 @@ + }; + } + +-typedef hash_set > string_hash_set; ++typedef hash_set > string_hash_set; + + class WordList { + private: diff --git a/games-puzzle/brainparty/files/brainparty-0.61-savegame.patch b/games-puzzle/brainparty/files/brainparty-0.61-savegame.patch new file mode 100644 index 000000000000..08526d345100 --- /dev/null +++ b/games-puzzle/brainparty/files/brainparty-0.61-savegame.patch @@ -0,0 +1,27 @@ +--- a/BPGame.cpp ++++ b/BPGame.cpp +@@ -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; -- cgit v1.2.3