From c3e616379406726c3b4d0c8458d7b225e1cda3ae Mon Sep 17 00:00:00 2001 From: cam900 Date: Mon, 6 Mar 2023 08:40:49 +0900 Subject: [PATCH] Add debug status support for PV1000 --- src/gui/debug.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/gui/debug.cpp b/src/gui/debug.cpp index 04d84c117..24714819a 100644 --- a/src/gui/debug.cpp +++ b/src/gui/debug.cpp @@ -52,6 +52,7 @@ #include "../engine/platform/k007232.h" #include "../engine/platform/ga20.h" #include "../engine/platform/sm8521.h" +#include "../engine/platform/pv1000.h" #include "../engine/platform/dummy.h" #define COMMON_CHIP_DEBUG \ @@ -537,6 +538,13 @@ void putDispatchChip(void* data, int type) { ImGui::TextColored(ch->antiClickEnabled?colorOn:colorOff,">> AntiClickEnabled"); break; } + case DIV_SYSTEM_PV1000: { + DivPlatformPV1000* ch=(DivPlatformPV1000*)data; + ImGui::Text("> PV1000"); + COMMON_CHIP_DEBUG; + COMMON_CHIP_DEBUG_BOOL; + break; + } default: ImGui::Text("Unimplemented chip! Help!"); break; @@ -1068,6 +1076,14 @@ void putDispatchChan(void* data, int chanNum, int type) { ImGui::TextColored(ch->volumeChanged?colorOn:colorOff,">> VolumeChanged"); break; } + case DIV_SYSTEM_PV1000: { + DivPlatformPV1000::Channel* ch=(DivPlatformPV1000::Channel*)data; + ImGui::Text("> PV1000"); + COMMON_CHAN_DEBUG; + COMMON_CHAN_DEBUG_BOOL; + ImGui::TextColored(ch->writeVol?colorOn:colorOff,">> WriteVol"); + break; + } default: ImGui::Text("Unimplemented chip! Help!"); break;