--- nono/vm/dipsw.cpp 2026/04/29 17:05:29 1.1.1.2 +++ nono/vm/dipsw.cpp 2026/04/29 17:05:42 1.1.1.4 @@ -119,10 +119,6 @@ LunaDipswDevice::~LunaDipswDevice() bool LunaDipswDevice::Init() { - if (inherited::Init() == false) { - return false; - } - const ConfigItem& item1 = gConfig->Find("luna-dipsw1"); const std::string& str1 = item1.AsString(); if (str1.size() != 8) { @@ -198,10 +194,6 @@ NewsDipswDevice::~NewsDipswDevice() bool NewsDipswDevice::Init() { - if (inherited::Init() == false) { - return false; - } - const ConfigItem& item = gConfig->Find("news-dipsw"); const std::string& str = item.AsString(); if (str.size() != 8) { @@ -213,10 +205,10 @@ NewsDipswDevice::Init() } // DIP5 オン(true)で自動起動。 - bool val; const ConfigItem& item_autoboot = gConfig->Find("dipsw-autoboot"); const std::string& autoboot = item_autoboot.AsString(); if (autoboot.empty() == false) { + bool val; if (autoboot == "yes") { val = true; } else if (autoboot == "no") {