Add debug status support for PV1000

This commit is contained in:
cam900 2023-03-06 08:40:49 +09:00
parent 46bce25a34
commit c3e6163794
1 changed files with 16 additions and 0 deletions

View File

@ -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;