--- nono/cli/cli_app.cpp 2026/04/29 17:05:09 1.1.1.9 +++ nono/cli/cli_app.cpp 2026/04/29 17:05:16 1.1.1.11 @@ -12,8 +12,7 @@ #include "cuimessage.h" #include "kevent.h" #include "mainapp.h" -#include "mpu680x0.h" -#include "pluto.h" +#include "power.h" #include "vm.h" // wxApp と相似にするためのクラス @@ -76,7 +75,7 @@ CLIApp::OnCreate() { CUIMessage::Connect(UIMessage::APPEXIT, [&](const UIMessage&) { OnAppExit(); }); - if (gMPU680x0) { + if (gMainApp.Has(VMCap::M68K)) { CUIMessage::Connect(UIMessage::HALT, [&](const UIMessage&) { OnHalt(); }); } @@ -84,7 +83,8 @@ CLIApp::OnCreate() UIMessage::Attach(&CUIMessage::Process); // 電源投入 - gVM->PowerButton(); + auto power = GetPowerDevice(); + power->PowerButton(); // メッセージを待つ while (exit_request == false) {