1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/games/brainparty/files/patch-BPGame.cpp
Dmitry Marakasov cc7a215393 Brain Party is a fun, free puzzle game for all the family that's
made up of 36 minigames designed to push your brain to its limits
by testing memory, logic, mathematics, reaction time and more! Brain
Party is split into two modes: test mode gives you five minigames
in a row and adds up your brain weight to see how smart you are,
and practise mode lets you play your favourite minigames as often
as you want. If you do well enough, there are six extra minigames
that can be unlocked as well as a new game mode designed to keep
you playing and enjoying your favourite games even longer.

WWW: http://www.tuxradar.com/brainparty
2010-04-25 12:07:11 +00:00

28 lines
843 B
C++

--- BPGame.cpp.orig 2010-03-11 03:15:34.000000000 +0300
+++ BPGame.cpp 2010-04-04 05:56:27.000000000 +0400
@@ -1295,7 +1295,7 @@
NumUnlockedGames = 0;
ifstream ifs;
- ifs.open(".brainparty");
+ ifs.open((string(getenv("HOME")) + "/.brainparty").c_str());
FirstRun = false;
@@ -1426,7 +1426,7 @@
void BPGame::SaveSettings() {
ofstream savefile;
- savefile.open(".brainparty");
+ savefile.open((string(getenv("HOME")) + "/.brainparty").c_str());
savefile << EnableSound << endl;
savefile << EnableMusic << endl;
savefile << endl;
@@ -2407,4 +2407,4 @@
Colour* BPGame::ColorLerp(Colour* from, Colour* to, float amount) {
Colour* col = new Colour(Lerp(from->R, to->R, amount), Lerp(from->G, to->G, amount), Lerp(from->B, to->B, amount), Lerp(from->A, to->A, amount));
return col;
-}
\ No newline at end of file
+}