summaryrefslogtreecommitdiff
path: root/games/toppler/files/patch-menu.cc
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2002-04-02 16:43:40 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2002-04-02 16:43:40 +0000
commit82151969a7e765675a57233558f4e8009bc3bb07 (patch)
tree4792d3fa9cb533322c89126588dd2dce2fa032fc /games/toppler/files/patch-menu.cc
parentadd fspanel 0.7.6 (diff)
toppler (aka nebulous) is a game where you have to guide a small
frog up a tower, avoiding the baddies. You do have a snowball to fire, though. PR: 34119 Submitted by: dom@happygiraffe.net
Diffstat (limited to 'games/toppler/files/patch-menu.cc')
-rw-r--r--games/toppler/files/patch-menu.cc30
1 files changed, 30 insertions, 0 deletions
diff --git a/games/toppler/files/patch-menu.cc b/games/toppler/files/patch-menu.cc
new file mode 100644
index 000000000000..b85cc1a75a3e
--- /dev/null
+++ b/games/toppler/files/patch-menu.cc
@@ -0,0 +1,30 @@
+--- menu.cc.orig Sat Jan 19 11:08:41 2002
++++ menu.cc Sat Jan 19 11:11:09 2002
+@@ -10,6 +10,9 @@
+
+ #include <stdlib.h>
+
++#define SCOREDIR "%SCOREDIR%"
++#define SCOREFILE "%SCOREFILE%"
++
+ static unsigned short menupicture, titledata;
+ static unsigned char currentmission = 0;
+
+@@ -175,7 +178,7 @@
+ static void getscores() {
+ char n[300];
+
+- sprintf(n, "%s/nebulous.hsc", getenv("HOME"));
++ sprintf(n, "%s/%s", SCOREDIR, SCOREFILE);
+ FILE *f = fopen(n, "rb");
+
+ if (f) {
+@@ -195,7 +198,7 @@
+ static void savescores() {
+ char n[300];
+
+- sprintf(n, "%s/nebulous.hsc", getenv("HOME"));
++ sprintf(n, "%s/%s", SCOREDIR, SCOREFILE);
+
+ FILE *f = fopen(n, "r+b");
+