--- nono/vm/vm.h 2026/04/29 17:04:36 1.1.1.3 +++ nono/vm/vm.h 2026/04/29 17:04:45 1.1.1.5 @@ -44,7 +44,7 @@ class VM bool Create(); // 初期化 - virtual bool Init(); + bool Init(); // 設定の適用 bool Apply(); @@ -72,12 +72,16 @@ class VM // MPU の RESET 命令によるリセット void ResetSoft(); + // BusErr デバイスを取得する + BusErrDevice *GetBusErrDevice() const { return buserr.get(); } + protected: // VM の全デバイスの電源をオン bool DevicePowerOn(); - std::unique_ptr buserr; - void (*poweroff_callback)() = NULL; + std::unique_ptr buserr {}; + + void (*poweroff_callback)() {}; }; extern std::unique_ptr gVM;