Lines 63-72
Link Here
|
63 |
* to succeed even if the strings have not been allocated yet, |
63 |
* to succeed even if the strings have not been allocated yet, |
64 |
* as long as the variables start out as "NULL". |
64 |
* as long as the variables start out as "NULL". |
65 |
*/ |
65 |
*/ |
66 |
void init_file_paths(char *path) |
66 |
void init_file_paths(char *path, char *path2) |
67 |
{ |
67 |
{ |
68 |
char *tail; |
68 |
char *tail; |
69 |
|
69 |
char *tail2; |
|
|
70 |
char *tmp; |
70 |
|
71 |
|
71 |
/*** Free everything ***/ |
72 |
/*** Free everything ***/ |
72 |
|
73 |
|
Lines 103-108
void init_file_paths(char *path)
Link Here
|
103 |
/* Prepare to append to the Base Path */ |
104 |
/* Prepare to append to the Base Path */ |
104 |
tail = path + strlen(path); |
105 |
tail = path + strlen(path); |
105 |
|
106 |
|
|
|
107 |
tmp = string_make(path2); |
108 |
|
109 |
/* Prepare to append to the Base Path */ |
110 |
tail2 = path2 + strlen(path2); |
106 |
|
111 |
|
107 |
#ifdef VM |
112 |
#ifdef VM |
108 |
|
113 |
|
Lines 123-130
void init_file_paths(char *path)
Link Here
|
123 |
/*** Build the sub-directory names ***/ |
128 |
/*** Build the sub-directory names ***/ |
124 |
|
129 |
|
125 |
/* Build a path name */ |
130 |
/* Build a path name */ |
126 |
strcpy(tail, "data"); |
131 |
strcpy(tail2, "data"); |
127 |
ANGBAND_DIR_DATA = string_make(path); |
132 |
ANGBAND_DIR_DATA = string_make(path2); |
128 |
|
133 |
|
129 |
/* Build a path name */ |
134 |
/* Build a path name */ |
130 |
strcpy(tail, "edit"); |
135 |
strcpy(tail, "edit"); |
Lines 147-162
void init_file_paths(char *path)
Link Here
|
147 |
ANGBAND_DIR_PREF = string_make(path); |
152 |
ANGBAND_DIR_PREF = string_make(path); |
148 |
#endif |
153 |
#endif |
149 |
/* Build a path name */ |
154 |
/* Build a path name */ |
150 |
strcpy(tail, "save"); |
155 |
strcpy(tail2, "save"); |
151 |
ANGBAND_DIR_SAVE = string_make(path); |
156 |
ANGBAND_DIR_SAVE = string_make(path2); |
152 |
|
157 |
|
153 |
/* Build a path name */ |
158 |
/* Build a path name */ |
154 |
strcpy(tail, "text"); |
159 |
strcpy(tail, "text"); |
155 |
ANGBAND_DIR_TEXT = string_make(path); |
160 |
ANGBAND_DIR_TEXT = string_make(path); |
156 |
|
161 |
|
157 |
/* Build a path name */ |
162 |
/* Build a path name */ |
158 |
strcpy(tail, "user"); |
163 |
strcpy(tail2, "user"); |
159 |
ANGBAND_DIR_USER = string_make(path); |
164 |
ANGBAND_DIR_USER = string_make(path2); |
160 |
#if 0 |
165 |
#if 0 |
161 |
/* Build a path name */ |
166 |
/* Build a path name */ |
162 |
strcpy(tail, "apex"); |
167 |
strcpy(tail, "apex"); |
Lines 2545-2551
void load_server_cfg_aux(FILE * cfg)
Link Here
|
2545 |
cptr possible_cfg_dir[] = |
2550 |
cptr possible_cfg_dir[] = |
2546 |
{ |
2551 |
{ |
2547 |
"mangband.cfg", |
2552 |
"mangband.cfg", |
2548 |
"/etc/mangband.cfg", |
2553 |
"/etc/games/mangband.cfg", |
2549 |
"/usr/local/etc/mangband.cfg", |
2554 |
"/usr/local/etc/mangband.cfg", |
2550 |
"/usr/etc/mangband.cfg", |
2555 |
"/usr/etc/mangband.cfg", |
2551 |
NULL |
2556 |
NULL |