変愚蛮怒のメインリポジトリです
Revision | 883e2310127c1356ce033cc29ca9da2bb53f261e (tree) |
---|---|
Time | 2002-04-06 02:48:55 |
Author | mogami <mogami@0568...> |
Commiter | mogami |
ほとんど活用されてない user.prf をユーザーディレクトリに各自が置く
設定ファイルとしてもっと活用できるように、セーブデータのロードの後で
user.prfを読み込むように修正。こうすると$CLASS $RACE等で条件分岐に使える。
@@ -6048,6 +6048,18 @@ static void load_all_pref_files(void) | ||
6048 | 6048 | { |
6049 | 6049 | char buf[1024]; |
6050 | 6050 | |
6051 | + /* Access the "user" pref file */ | |
6052 | + sprintf(buf, "user.prf"); | |
6053 | + | |
6054 | + /* Process that file */ | |
6055 | + process_pref_file(buf); | |
6056 | + | |
6057 | + /* Access the "user" system pref file */ | |
6058 | + sprintf(buf, "user-%s.prf", ANGBAND_SYS); | |
6059 | + | |
6060 | + /* Process that file */ | |
6061 | + process_pref_file(buf); | |
6062 | + | |
6051 | 6063 | /* Access the "race" pref file */ |
6052 | 6064 | sprintf(buf, "%s.prf", rp_ptr->title); |
6053 | 6065 |
@@ -2284,24 +2284,12 @@ note("[ | ||
2284 | 2284 | /* Process that file */ |
2285 | 2285 | process_pref_file(buf); |
2286 | 2286 | |
2287 | - /* Access the "user" pref file */ | |
2288 | - sprintf(buf, "user.prf"); | |
2289 | - | |
2290 | - /* Process that file */ | |
2291 | - process_pref_file(buf); | |
2292 | - | |
2293 | 2287 | /* Access the "basic" system pref file */ |
2294 | 2288 | sprintf(buf, "pref-%s.prf", ANGBAND_SYS); |
2295 | 2289 | |
2296 | 2290 | /* Process that file */ |
2297 | 2291 | process_pref_file(buf); |
2298 | 2292 | |
2299 | - /* Access the "user" system pref file */ | |
2300 | - sprintf(buf, "user-%s.prf", ANGBAND_SYS); | |
2301 | - | |
2302 | - /* Process that file */ | |
2303 | - process_pref_file(buf); | |
2304 | - | |
2305 | 2293 | /* Done */ |
2306 | 2294 | #ifdef JP |
2307 | 2295 | note("[初期化終了]"); |