diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-04-03 06:35:33 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-04-03 06:35:33 +0000 |
commit | 6cc35e3055d2d37568bfdc8a0d217207beab5769 (patch) | |
tree | 9d83b01cc79890fcc6a23b4128708d6b771ca465 /games-arcade/smclone/files | |
parent | Version bump. (diff) | |
download | gentoo-2-6cc35e3055d2d37568bfdc8a0d217207beab5769.tar.gz gentoo-2-6cc35e3055d2d37568bfdc8a0d217207beab5769.tar.bz2 gentoo-2-6cc35e3055d2d37568bfdc8a0d217207beab5769.zip |
Version bump #87663 by Hans Cats.
(Portage version: 2.0.51.19)
Diffstat (limited to 'games-arcade/smclone/files')
-rw-r--r-- | games-arcade/smclone/files/digest-smclone-0.95 | 2 | ||||
-rw-r--r-- | games-arcade/smclone/files/smclone-0.95-gentoo-paths.patch | 15 | ||||
-rw-r--r-- | games-arcade/smclone/files/smclone-0.95-use-HOME.patch | 50 |
3 files changed, 67 insertions, 0 deletions
diff --git a/games-arcade/smclone/files/digest-smclone-0.95 b/games-arcade/smclone/files/digest-smclone-0.95 new file mode 100644 index 000000000000..edb6ef24c928 --- /dev/null +++ b/games-arcade/smclone/files/digest-smclone-0.95 @@ -0,0 +1,2 @@ +MD5 c35e017d9c9c7dd6144d38152060ec03 SMC_0.95.zip 4747150 +MD5 eb4f325dedb9da34049fd727bbf2a1e2 music_2.0_RC_1.zip 17954786 diff --git a/games-arcade/smclone/files/smclone-0.95-gentoo-paths.patch b/games-arcade/smclone/files/smclone-0.95-gentoo-paths.patch new file mode 100644 index 000000000000..7b8b0147677a --- /dev/null +++ b/games-arcade/smclone/files/smclone-0.95-gentoo-paths.patch @@ -0,0 +1,15 @@ +--- configure.ac ++++ configure.ac +@@ -81,6 +81,6 @@ +-AC_DEFINE_UNQUOTED(LEVEL_DIR, "levels", [Directory for level files]) +-AC_DEFINE_UNQUOTED(OVERWORLD_DIR, "world", [Directory for word data]) +-AC_DEFINE_UNQUOTED(PIXMAPS_DIR, "data/pixmaps", [Directory for pixmap data]) +-AC_DEFINE_UNQUOTED(SOUNDS_DIR, "data/sounds", [Directory for sound data]) +-AC_DEFINE_UNQUOTED(MUSIC_DIR, "data/music", [Directory for music data]) +-AC_DEFINE_UNQUOTED(FONT_DIR, "data/font", [Directory for font data]) ++AC_DEFINE_UNQUOTED(LEVEL_DIR, "@GENTOO_DATADIR@/levels", [Directory for level files]) ++AC_DEFINE_UNQUOTED(OVERWORLD_DIR, "@GENTOO_DATADIR@/world", [Directory for word data]) ++AC_DEFINE_UNQUOTED(PIXMAPS_DIR, "@GENTOO_DATADIR@/pixmaps", [Directory for pixmap data]) ++AC_DEFINE_UNQUOTED(SOUNDS_DIR, "@GENTOO_DATADIR@/sounds", [Directory for sound data]) ++AC_DEFINE_UNQUOTED(MUSIC_DIR, "@GENTOO_DATADIR@/music", [Directory for music data]) ++AC_DEFINE_UNQUOTED(FONT_DIR, "@GENTOO_DATADIR@/font", [Directory for font data]) diff --git a/games-arcade/smclone/files/smclone-0.95-use-HOME.patch b/games-arcade/smclone/files/smclone-0.95-use-HOME.patch new file mode 100644 index 000000000000..114ae3a49385 --- /dev/null +++ b/games-arcade/smclone/files/smclone-0.95-use-HOME.patch @@ -0,0 +1,50 @@ +--- savegame.cpp ++++ savegame.cpp +@@ -45,8 +45,8 @@ + loaded_save_info.OW_world = 0; + loaded_save_info.itembox_item = 0; + +- char Full_Save_Name[40]; +- sprintf( Full_Save_Name, "%s/%d.sav", SAVE_DIR, Save_file ); ++ char Full_Save_Name[255]; ++ snprintf( Full_Save_Name, sizeof(Full_Save_Name) - 1, "%s/.smclone/%d.sav", getenv("HOME"), Save_file ); + + ifstream ifs( Full_Save_Name, ios::in ); + +@@ -79,8 +79,8 @@ + + int cSavegame :: Save( unsigned int Save_file, Savegame Save_info ) + { +- char Full_Save_Name[45]; +- sprintf( Full_Save_Name, "%s/%d.sav", SAVE_DIR, Save_file ); ++ char Full_Save_Name[255]; ++ snprintf( Full_Save_Name, sizeof(Full_Save_Name) - 1, "%s/.smclone/%d.sav", getenv("HOME"), Save_file ); + + ifstream ifs( Full_Save_Name, ios::in ); + +@@ -181,10 +181,11 @@ + char buffer[10]; + char desc_tmp[150]; + +- Full_Save_Name = SAVE_DIR "/.sav"; ++ Full_Save_Name = "/.smclone/.sav"; + + sprintf( buffer, "%d", Save_file ); +- Full_Save_Name.insert( strlen( SAVE_DIR ) + 1, buffer ); ++ Full_Save_Name.insert( strlen( "/.smclone/" ) + 1, buffer ); ++ Full_Save_Name.insert( 0, getenv("HOME") ); + + if( !valid_file( Full_Save_Name ) ) + { +@@ -235,9 +236,9 @@ + + bool cSavegame :: is_valid( unsigned int Save_file ) + { +- char savename[50]; ++ char savename[255]; + +- sprintf( savename, "%s/%d.sav", SAVE_DIR, Save_file ); ++ snprintf( savename, sizeof(savename) - 1, "%s/.smclone/%d.sav", getenv("HOME"), Save_file ); + + return valid_file( savename ); + } |