OSDN Git Service

ほとんど活用されてない user.prf をユーザーディレクトリに各自が置く
authormogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 5 Apr 2002 17:48:55 +0000 (17:48 +0000)
committermogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 5 Apr 2002 17:48:55 +0000 (17:48 +0000)
設定ファイルとしてもっと活用できるように、セーブデータのロードの後で
user.prfを読み込むように修正。こうすると$CLASS $RACE等で条件分岐に使える。

src/dungeon.c
src/init2.c

index fdf1c0f..025a8b7 100644 (file)
@@ -6048,6 +6048,18 @@ static void load_all_pref_files(void)
 {
        char buf[1024];
 
+       /* Access the "user" pref file */
+       sprintf(buf, "user.prf");
+
+       /* Process that file */
+       process_pref_file(buf);
+
+       /* Access the "user" system pref file */
+       sprintf(buf, "user-%s.prf", ANGBAND_SYS);
+
+       /* Process that file */
+       process_pref_file(buf);
+
        /* Access the "race" pref file */
        sprintf(buf, "%s.prf", rp_ptr->title);
 
index 9eea434..413af9a 100644 (file)
@@ -2284,24 +2284,12 @@ note("[
        /* Process that file */
        process_pref_file(buf);
 
-       /* Access the "user" pref file */
-       sprintf(buf, "user.prf");
-
-       /* Process that file */
-       process_pref_file(buf);
-
        /* Access the "basic" system pref file */
        sprintf(buf, "pref-%s.prf", ANGBAND_SYS);
 
        /* Process that file */
        process_pref_file(buf);
 
-       /* Access the "user" system pref file */
-       sprintf(buf, "user-%s.prf", ANGBAND_SYS);
-
-       /* Process that file */
-       process_pref_file(buf);
-
        /* Done */
 #ifdef JP
        note("[½é´ü²½½ªÎ»]");