openbsd-ports/games/angband/patches/patch-src_init2_c
lebel 2f62e89795 modify angband in order to use /var/games/zangband for
user modifiable files (like score, bone and save files). Add
pkg/INSTALL and pkg/DEINSTALL to manage them.

Also, sync the installation with the way zangband does it.

Instead of "No", specify that the license is unclear for distribution
rights on CDROM.
2001-08-11 17:18:50 +00:00

34 lines
1.0 KiB
Plaintext

$OpenBSD: patch-src_init2_c,v 1.1 2001/08/11 17:18:50 lebel Exp $
--- src/init2.c.orig Sat Aug 4 07:11:13 2001
+++ src/init2.c Sat Aug 11 12:42:38 2001
@@ -133,16 +133,13 @@ void init_file_paths(char *path)
/*** 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/angband/apex");
/* Build a path name */
- strcpy(tail, "bone");
- ANGBAND_DIR_BONE = string_make(path);
+ ANGBAND_DIR_BONE = string_make("/var/games/angband/bone");
/* Build a path name */
- strcpy(tail, "data");
- ANGBAND_DIR_DATA = string_make(path);
+ ANGBAND_DIR_DATA = string_make("/var/games/angband/data");
/* Build a path name */
strcpy(tail, "edit");
@@ -161,8 +158,7 @@ void init_file_paths(char *path)
ANGBAND_DIR_INFO = string_make(path);
/* Build a path name */
- strcpy(tail, "save");
- ANGBAND_DIR_SAVE = string_make(path);
+ ANGBAND_DIR_SAVE = string_make("/var/games/angband/save");
/* Build a path name */
strcpy(tail, "pref");