From a45708706017ea62acf24112248b3b0eff226d57 Mon Sep 17 00:00:00 2001 From: Deskull Date: Wed, 19 Sep 2018 21:33:58 +0900 Subject: [PATCH] =?utf8?q?[Refactor]=20#37353=E3=80=80cmd4=EF=BD=9Egameopt?= =?utf8?q?ion=E9=96=93=E6=95=B4=E7=90=86=E3=80=82=20/=20Refactor=20between?= =?utf8?q?=20cmd4=20and=20gameoption.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/cmd4.c | 12 ------------ src/externs.h | 1 + src/gameoption.c | 12 ++++++++++++ 3 files changed, 13 insertions(+), 12 deletions(-) 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") }, +}; -- 2.11.0