From 65a280618b83da3fc72dc22bbb913db206ea10dc Mon Sep 17 00:00:00 2001 From: rofl0r Date: Tue, 26 Oct 2021 16:17:00 +0000 Subject: [PATCH] cli: turn off sound when entering gdb stub --- desmume/src/frontend/posix/cli/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/desmume/src/frontend/posix/cli/main.cpp b/desmume/src/frontend/posix/cli/main.cpp index 3d1864ff1..5c7b32f54 100644 --- a/desmume/src/frontend/posix/cli/main.cpp +++ b/desmume/src/frontend/posix/cli/main.cpp @@ -56,9 +56,15 @@ class CliDriver : public BaseDriver private: gdbstub_handle_t __stubs[2]; public: + virtual void EMU_DebugIdleEnter() { + SPU_Pause(1); + } virtual void EMU_DebugIdleUpdate() { gdbstub_wait(__stubs, -1L); } + virtual void EMU_DebugIdleWakeUp() { + SPU_Pause(0); + } virtual void setStubs(gdbstub_handle_t stubs[2]) { this->__stubs[0] = stubs[0]; this->__stubs[1] = stubs[1];