--- nono/vm/rtc.cpp 2026/04/29 17:05:29 1.1.1.10 +++ nono/vm/rtc.cpp 2026/04/29 17:05:43 1.1.1.12 @@ -28,10 +28,6 @@ RTCDevice::~RTCDevice() bool RTCDevice::Init() { - if (inherited::Init() == false) { - return false; - } - syncer = GetSyncer(); // TODO: use_localtime を設定可能にするべきかどうか @@ -43,17 +39,7 @@ RTCDevice::Init() // VM を作り、パフォーマンス測定を安定させる。 force_fixed = gConfig->Find(".rtc-force-fixed").AsInt(); - // クロックの同期方法 - const ConfigItem& item_sync = gConfig->Find("clock-sync"); - auto clock_sync = item_sync.AsString(); - if (clock_sync == "real") { - sync_rt = true; - } else if (clock_sync == "virtual") { - sync_rt = false; - } else { - item_sync.Err(); - return false; - } + sync_rt = syncer->GetSyncRealtime(); rtc_tm.tm_year = -1; rtc_tm.tm_mon = -1;