--- nono/vm/power.h 2026/04/29 17:05:24 1.1.1.4 +++ nono/vm/power.h 2026/04/29 17:05:50 1.1.1.6 @@ -11,10 +11,10 @@ #pragma once #include "device.h" -#include "event.h" #include "message.h" class Syncer; +class UIMessage; // 定数 enum class PowerButtonState @@ -85,6 +85,7 @@ class PowerDevice : public Device bool led {}; Syncer *syncer {}; + UIMessage *uimessage {}; }; class LunaPowerDevice : public PowerDevice @@ -94,14 +95,16 @@ class LunaPowerDevice : public PowerDevi LunaPowerDevice(); ~LunaPowerDevice() override; + bool Init() override; + // PIO1 の PC4 の状態を受け取る void SetSystemPowerOn(bool poweron) override; private: - void PowerCallback(Event&); + void PowerCallback(Event *); // 電源オフイベント - Event event { this }; + Event *event {}; }; class X68030PowerDevice : public PowerDevice