diff options
Diffstat (limited to 'games-puzzle/mures/files/mures-0.5-save.patch')
-rw-r--r-- | games-puzzle/mures/files/mures-0.5-save.patch | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/games-puzzle/mures/files/mures-0.5-save.patch b/games-puzzle/mures/files/mures-0.5-save.patch index 20abd91308b6..704dcf1f53bc 100644 --- a/games-puzzle/mures/files/mures-0.5-save.patch +++ b/games-puzzle/mures/files/mures-0.5-save.patch @@ -1,5 +1,5 @@ ---- gi_sdl.c.orig 2004-06-01 21:51:58.000000000 +0300 -+++ gi_sdl.c 2004-06-01 22:13:59.000000000 +0300 +--- gi_sdl.c ++++ gi_sdl.c @@ -606,6 +606,7 @@ { int i,found; @@ -13,8 +13,21 @@ break; case SDLK_F6: - map_save(&g->sim.map, "saved.mus"); -+ sprintf(temp_path, "%s/saved.mus", getenv("HOME")); ++ snprintf(temp_path, 70, "%s/.mures.save", getenv("HOME")); + map_save(&g->sim.map, temp_path); break; case SDLK_F1: game_restart(g); + +--- output.c ++++ output.c +@@ -215,7 +215,8 @@ + + void output_screenshot() + { +- char *l = "shot.bmp"; ++ char l[70]; ++ snprintf(l, 70, "%s/mures_shot.bmp", getenv("HOME")); + SDL_SaveBMP(screen, l); + printf("Screenshot saved to %s.\n", l); + } |