summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-puzzle/mures/files/mures-0.5-save.patch')
-rw-r--r--games-puzzle/mures/files/mures-0.5-save.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/games-puzzle/mures/files/mures-0.5-save.patch b/games-puzzle/mures/files/mures-0.5-save.patch
new file mode 100644
index 000000000000..20abd91308b6
--- /dev/null
+++ b/games-puzzle/mures/files/mures-0.5-save.patch
@@ -0,0 +1,20 @@
+--- gi_sdl.c.orig 2004-06-01 21:51:58.000000000 +0300
++++ gi_sdl.c 2004-06-01 22:13:59.000000000 +0300
+@@ -606,6 +606,7 @@
+ {
+ int i,found;
+ gi_sdl_data *data = &GI;
++ char temp_path[70];
+
+ switch(e.type) {
+
+@@ -714,7 +715,8 @@
+ sim_start(&g->sim);
+ break;
+ case SDLK_F6:
+- map_save(&g->sim.map, "saved.mus");
++ sprintf(temp_path, "%s/saved.mus", getenv("HOME"));
++ map_save(&g->sim.map, temp_path);
+ break;
+ case SDLK_F1:
+ game_restart(g);