diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-07-20 12:29:37 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-07-20 12:29:37 +0100 |
commit | d3ae3ea75073c53ed5f3a4418e76383436bb0f58 (patch) | |
tree | e7bdf993ecf567ea3b6d9c8c00797f63ae25ea02 /games-rpg/xu4/files/0.9-savegame.patch | |
parent | c59df12b8749ab7bbd5a0692072652d4fbb0d2cf (diff) |
gentoo auto-resync : 20:07:2024 - 12:29:37
Diffstat (limited to 'games-rpg/xu4/files/0.9-savegame.patch')
-rw-r--r-- | games-rpg/xu4/files/0.9-savegame.patch | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/games-rpg/xu4/files/0.9-savegame.patch b/games-rpg/xu4/files/0.9-savegame.patch deleted file mode 100644 index 96d16360f37c..000000000000 --- a/games-rpg/xu4/files/0.9-savegame.patch +++ /dev/null @@ -1,76 +0,0 @@ ---- a/src/savegame.c. -+++ b/src/savegame.c -@@ -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; - } - ---- a/src/u4.c -+++ b/src/u4.c -@@ -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++) { |