diff options
author | Tristan Heaven <nyhm@gentoo.org> | 2006-10-17 19:07:23 +0000 |
---|---|---|
committer | Tristan Heaven <nyhm@gentoo.org> | 2006-10-17 19:07:23 +0000 |
commit | ee979345b428b92efe8cf0c04d3eee3e2394c330 (patch) | |
tree | b3c26913812cf95dc1735f32d715789455668ae3 /games-puzzle/mures/files | |
parent | Marking g-cpan-0.14.0 stable for sparc and amd64 (diff) | |
download | gentoo-2-ee979345b428b92efe8cf0c04d3eee3e2394c330.tar.gz gentoo-2-ee979345b428b92efe8cf0c04d3eee3e2394c330.tar.bz2 gentoo-2-ee979345b428b92efe8cf0c04d3eee3e2394c330.zip |
Use autotools eclass; merge patches
(Portage version: 2.1.2_pre3-r3)
Diffstat (limited to 'games-puzzle/mures/files')
-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); + } |