diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2004-06-22 09:05:56 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2004-06-22 09:05:56 +0000 |
commit | e788d71524c19b4626c5f8ed86601946b8047f80 (patch) | |
tree | 52d93982d0c15cf59bf0f620a8fd4b44b141dc9c /games-rpg/xu4/files | |
parent | Stable on alpha. (diff) | |
download | historical-e788d71524c19b4626c5f8ed86601946b8047f80.tar.gz historical-e788d71524c19b4626c5f8ed86601946b8047f80.tar.bz2 historical-e788d71524c19b4626c5f8ed86601946b8047f80.zip |
Initial commit; ebuild by me to fix bug #45767
Diffstat (limited to 'games-rpg/xu4/files')
-rw-r--r-- | games-rpg/xu4/files/0.9-savegame.patch | 76 | ||||
-rw-r--r-- | games-rpg/xu4/files/digest-xu4-0.9 | 3 |
2 files changed, 79 insertions, 0 deletions
diff --git a/games-rpg/xu4/files/0.9-savegame.patch b/games-rpg/xu4/files/0.9-savegame.patch new file mode 100644 index 000000000000..a0c4906b06ed --- /dev/null +++ b/games-rpg/xu4/files/0.9-savegame.patch @@ -0,0 +1,76 @@ +--- src/savegame.c.orig 2004-06-22 01:11:47.000000000 -0700 ++++ src/savegame.c 2004-06-22 01:14:42.000000000 -0700 +@@ -21,23 +21,24 @@ + char *partySavFilename() { + char *fname; + +-#if defined(MACOSX) + char *home; + + home = getenv("HOME"); + if (home && home[0]) { + fname = (char *) malloc(strlen(home) + ++#if defined(MACOSX) + strlen(MACOSX_USER_FILES_PATH) + ++#endif ++strlen("/.u4/") + + strlen(PARTY_SAV_BASE_FILENAME) + 2); + strcpy(fname, home); ++#if defined(MACOSX) + strcat(fname, MACOSX_USER_FILES_PATH); +- strcat(fname, "/"); ++#endif ++ strcat(fname, "/.u4/"); + strcat(fname, PARTY_SAV_BASE_FILENAME); + } else + fname = strdup(PARTY_SAV_BASE_FILENAME); +-#else +- fname = strdup(PARTY_SAV_BASE_FILENAME); +-#endif + + return fname; + } +@@ -45,24 +45,24 @@ + char *monstersSavFilename() { + char *fname; + +-#if defined(MACOSX) + char *home; + + home = getenv("HOME"); + if (home && home[0]) { + fname = (char *) malloc(strlen(home) + ++#if defined(MACOSX) + strlen(MACOSX_USER_FILES_PATH) + ++#endif ++strlen("/.u4/") + + strlen(MONSTERS_SAV_BASE_FILENAME) + 2); + strcpy(fname, home); ++#if defined(MACOSX) + strcat(fname, MACOSX_USER_FILES_PATH); +- strcat(fname, "/"); ++#endif ++ strcat(fname, "/.u4/"); + strcat(fname, MONSTERS_SAV_BASE_FILENAME); + } else + fname = strdup(MONSTERS_SAV_BASE_FILENAME); +-#else +- fname = strdup(MONSTERS_SAV_BASE_FILENAME); +-#endif +- + return fname; + } + +--- src/u4.c.orig 2004-06-22 01:28:38.000000000 -0700 ++++ src/u4.c 2004-06-22 01:30:30.000000000 -0700 +@@ -38,6 +38,10 @@ + osxInit(argv[0]); + #endif + ++ if (getenv("HOME")) { ++ chdir(getenv("HOME")); ++ mkdir(".u4", 0777); ++ } + settingsRead(); + + for (i = 1; i < (unsigned int)argc; i++) { diff --git a/games-rpg/xu4/files/digest-xu4-0.9 b/games-rpg/xu4/files/digest-xu4-0.9 new file mode 100644 index 000000000000..481c0adb33a3 --- /dev/null +++ b/games-rpg/xu4/files/digest-xu4-0.9 @@ -0,0 +1,3 @@ +MD5 b2c71b0a292ff7d39d7fa1d056ffd63a xu4-0.9.tar.gz 320090 +MD5 9b668cc1a2d508a6325442c28cbe53ba ultima4-1.01.zip 537487 +MD5 4ce9c9cd9dab111275e0ebfde7a482c4 u4upgrad.zip 632072 |