From: Deskull Date: Wed, 19 Sep 2018 12:33:58 +0000 (+0900) Subject: [Refactor] #37353 cmd4~gameoption間整理。 / Refactor between cmd4 and gameoption. X-Git-Url: http://git.osdn.net/view?p=hengband%2Fhengband.git;a=commitdiff_plain;h=a45708706017ea62acf24112248b3b0eff226d57;hp=ef404f991d1b5d973a30fa74fdcb8a3a885c8d4f [Refactor] #37353 cmd4~gameoption間整理。 / Refactor between cmd4 and gameoption. --- diff --git a/src/cmd4.c b/src/cmd4.c index 37e9e3188..83b00f888 100644 --- a/src/cmd4.c +++ b/src/cmd4.c @@ -1512,18 +1512,6 @@ static void do_cmd_options_cheat(cptr info) /*! - * 自動セーブオプションテーブル - */ -static option_type autosave_info[2] = -{ - { &autosave_l, FALSE, 255, 0x01, 0x00, - "autosave_l", _("新しい階に入る度に自動セーブする", "Autosave when entering new levels") }, - - { &autosave_t, FALSE, 255, 0x02, 0x00, - "autosave_t", _("一定ターン毎に自動セーブする", "Timed autosave") }, -}; - -/*! * @brief セーブ頻度ターンの次の値を返す * @param current 現在のセーブ頻度ターン値 * @return 次のセーブ頻度ターン値 diff --git a/src/externs.h b/src/externs.h index 4dab2696d..de6f94160 100644 --- a/src/externs.h +++ b/src/externs.h @@ -117,6 +117,7 @@ extern const cptr artifact_bias_name[MAX_BIAS]; extern const option_type option_info[]; extern const option_type cheat_info[CHEAT_MAX]; +extern const option_type autosave_info[2]; /* variable.c */ extern const cptr copyright[5]; diff --git a/src/gameoption.c b/src/gameoption.c index 0efa4b68f..a8de5eebe 100644 --- a/src/gameoption.c +++ b/src/gameoption.c @@ -434,3 +434,15 @@ const option_type cheat_info[CHEAT_MAX] = } }; + +/*! +* Ž©“®ƒZ[ƒuƒIƒvƒVƒ‡ƒ“ƒe[ƒuƒ‹ +*/ +const option_type autosave_info[2] = +{ + { &autosave_l, FALSE, 255, 0x01, 0x00, + "autosave_l", _("V‚µ‚¢ŠK‚É“ü‚é“x‚ÉŽ©“®ƒZ[ƒu‚·‚é", "Autosave when entering new levels") }, + + { &autosave_t, FALSE, 255, 0x02, 0x00, + "autosave_t", _("ˆê’èƒ^[ƒ“–ˆ‚ÉŽ©“®ƒZ[ƒu‚·‚é", "Timed autosave") }, +};