--- nono/vm/sysport.cpp 2026/04/29 17:05:28 1.1.1.13 +++ nono/vm/sysport.cpp 2026/04/29 17:05:37 1.1.1.15 @@ -11,6 +11,7 @@ #include "sysport.h" #include "keyboard.h" #include "mainram.h" +#include "monitor.h" #include "mpu.h" #include "nmi.h" #include "power.h" @@ -23,9 +24,9 @@ SysportDevice::SysportDevice() : inherited(OBJ_SYSPORT) { - monitor.func = ToMonitorCallback(&SysportDevice::MonitorUpdate); - monitor.SetSize(56, 8); - monitor.Regist(ID_MONITOR_SYSPORT); + monitor = gMonitorManager->Regist(ID_MONITOR_SYSPORT, this); + monitor->func = ToMonitorCallback(&SysportDevice::MonitorUpdate); + monitor->SetSize(56, 8); } // デストラクタ @@ -37,10 +38,6 @@ SysportDevice::~SysportDevice() bool SysportDevice::Init() { - if (inherited::Init() == false) { - return false; - } - cgrom = GetCGROMDevice(); iplrom1 = GetIPLROM1Device(); iplrom2 = GetIPLROM2Device();