• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revision883e2310127c1356ce033cc29ca9da2bb53f261e (tree)
Time2002-04-06 02:48:55
Authormogami <mogami@0568...>
Commitermogami

Log Message

ほとんど活用されてない user.prf をユーザーディレクトリに各自が置く
設定ファイルとしてもっと活用できるように、セーブデータのロードの後で
user.prfを読み込むように修正。こうすると$CLASS $RACE等で条件分岐に使える。

Change Summary

Incremental Difference

--- a/src/dungeon.c
+++ b/src/dungeon.c
@@ -6048,6 +6048,18 @@ static void load_all_pref_files(void)
60486048 {
60496049 char buf[1024];
60506050
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+
60516063 /* Access the "race" pref file */
60526064 sprintf(buf, "%s.prf", rp_ptr->title);
60536065
--- a/src/init2.c
+++ b/src/init2.c
@@ -2284,24 +2284,12 @@ note("[
22842284 /* Process that file */
22852285 process_pref_file(buf);
22862286
2287- /* Access the "user" pref file */
2288- sprintf(buf, "user.prf");
2289-
2290- /* Process that file */
2291- process_pref_file(buf);
2292-
22932287 /* Access the "basic" system pref file */
22942288 sprintf(buf, "pref-%s.prf", ANGBAND_SYS);
22952289
22962290 /* Process that file */
22972291 process_pref_file(buf);
22982292
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-
23052293 /* Done */
23062294 #ifdef JP
23072295 note("[初期化終了]");
Show on old repository browser