From a49664a3f54a767e2f00fd25480a7f9f82680c13 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sat, 5 Apr 2025 03:22:48 -0500 Subject: [PATCH] GUI: make command stream player visible window > debug > command stream player --- src/gui/debugWindow.cpp | 2 -- src/gui/gui.cpp | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gui/debugWindow.cpp b/src/gui/debugWindow.cpp index e6c8673a3..c05fb24d6 100644 --- a/src/gui/debugWindow.cpp +++ b/src/gui/debugWindow.cpp @@ -80,8 +80,6 @@ void FurnaceGUI::drawDebug() { ImGui::SameLine(); if (ImGui::Button("Pattern Advance")) e->haltWhen(DIV_HALT_PATTERN); - if (ImGui::Button("Play Command Stream")) nextWindow=GUI_WINDOW_CS_PLAYER; - if (ImGui::Button("Panic")) e->syncReset(); ImGui::SameLine(); if (ImGui::Button("Abort")) { diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index d5bc589fe..a5c38611a 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -4708,6 +4708,7 @@ bool FurnaceGUI::loop() { if (ImGui::MenuItem(_("register view"),BIND_FOR(GUI_ACTION_WINDOW_REGISTER_VIEW),regViewOpen)) regViewOpen=!regViewOpen; if (ImGui::MenuItem(_("statistics"),BIND_FOR(GUI_ACTION_WINDOW_STATS),statsOpen)) statsOpen=!statsOpen; if (ImGui::MenuItem(_("memory composition"),BIND_FOR(GUI_ACTION_WINDOW_MEMORY),memoryOpen)) memoryOpen=!memoryOpen; + if (ImGui::MenuItem(_("command stream player"),BIND_FOR(GUI_ACTION_WINDOW_CS_PLAYER),csPlayerOpen)) csPlayerOpen=!csPlayerOpen; ImGui::EndMenu(); } ImGui::Separator(); @@ -7993,6 +7994,7 @@ void FurnaceGUI::syncState() { chanOscOpen=e->getConfBool("chanOscOpen",false); xyOscOpen=e->getConfBool("xyOscOpen",false); memoryOpen=e->getConfBool("memoryOpen",false); + csPlayerOpen=e->getConfBool("csPlayerOpen",false); volMeterOpen=e->getConfBool("volMeterOpen",true); statsOpen=e->getConfBool("statsOpen",false); compatFlagsOpen=e->getConfBool("compatFlagsOpen",false); @@ -8153,6 +8155,7 @@ void FurnaceGUI::commitState(DivConfig& conf) { conf.set("chanOscOpen",chanOscOpen); conf.set("xyOscOpen",xyOscOpen); conf.set("memoryOpen",memoryOpen); + conf.set("csPlayerOpen",csPlayerOpen); conf.set("volMeterOpen",volMeterOpen); conf.set("statsOpen",statsOpen); conf.set("compatFlagsOpen",compatFlagsOpen);