openbsd-ports/games/zangband/patches/patch-src_init2_c
ajacoutot 8d57735e9f - small cleaning:
regen patches, remove uneeded comments from Makefile, reorder PLIST
no functionnal change
2008-01-08 10:50:49 +00:00

40 lines
1.1 KiB
Plaintext

$OpenBSD: patch-src_init2_c,v 1.2 2008/01/08 10:50:49 ajacoutot Exp $
--- src/init2.c.orig Sun Aug 5 05:30:06 2001
+++ src/init2.c Tue Jan 8 11:35:22 2008
@@ -130,21 +130,18 @@ void init_file_paths(char *path)
#else /* VM */
+#define OPENBSD_VAR "/var/games/zangband"
-
/*** Build the sub-directory names ***/
/* Build a path name */
- strcpy(tail, "apex");
- ANGBAND_DIR_APEX = string_make(path);
+ ANGBAND_DIR_APEX = string_make("/var/games/zangband/apex");
/* Build a path name */
- strcpy(tail, "bone");
- ANGBAND_DIR_BONE = string_make(path);
+ ANGBAND_DIR_BONE = string_make("/var/games/zangband/bone");
/* Build a path name */
- strcpy(tail, "data");
- ANGBAND_DIR_DATA = string_make(path);
+ ANGBAND_DIR_DATA = string_make("/var/games/zangband/data");
/* Build a path name */
strcpy(tail, "edit");
@@ -171,8 +168,7 @@ void init_file_paths(char *path)
ANGBAND_DIR_PREF = string_make(path);
/* Build a path name */
- strcpy(tail, "save");
- ANGBAND_DIR_SAVE = string_make(path);
+ ANGBAND_DIR_SAVE = string_make("/var/games/zangband/save");
#ifdef PRIVATE_USER_PATH