--- nono/lib/config.cpp 2026/04/29 17:04:54 1.1.1.7 +++ nono/lib/config.cpp 2026/04/29 17:04:57 1.1.1.8 @@ -47,6 +47,13 @@ Config::Config() Add("luna-dipsw1"); Add("luna-dipsw2"); + // LUNA の RTC(MK48T02) がうるう年でない 1970 をエポックとして + // 設定しているので、そちらに合わせてうるう年を補正する + Add("luna-adjust-misused-epoch", 1); + + // m88100 の別名ニーモニックを併記する。 + Add(".m88k-altname", 0); + // モニタウィンドウの更新頻度 [Hz] Add("monitor-rate", 20); @@ -74,6 +81,8 @@ Config::Config() // RTC のデバッグ用オプション。 Add(".rtc-force-fixed", 0); + Add(".rtc-date"); + Add(".rtc-time"); // ステータスパネルを表示する。 Add("show-statuspanel", 1); @@ -83,6 +92,9 @@ Config::Config() // 種別とイメージパス Add(string_format("spc0-id%d-image", id)); // エミュレータ的に書き込みを禁止するか + Add(string_format("spc0-id%d-writeignore", id), 0); + // エミュレータ的に書き込みを禁止するか + // (後方互換、十分不要になった頃に削除する) Add(string_format("spc0-id%d-writeprotect", id), 0); // シークタイム [msec] Add(string_format("spc0-id%d-seektime", id), 0); @@ -223,10 +235,8 @@ Config::SplitKeyVal(std::string *keyp, s auto key = line.substr(0, pos++); auto val = line.substr(pos, line.size() - pos); - string_rtrim(key); - string_rtrim(val); - *keyp = string_ltrim(key); - *valp = string_ltrim(val); + *keyp = string_trim(key); + *valp = string_trim(val); return true; }