cli: turn off sound when entering gdb stub

This commit is contained in:
rofl0r 2021-10-26 16:17:00 +00:00
parent 9f4e6992fb
commit 65a280618b
1 changed files with 6 additions and 0 deletions

View File

@ -56,9 +56,15 @@ class CliDriver : public BaseDriver
private: private:
gdbstub_handle_t __stubs[2]; gdbstub_handle_t __stubs[2];
public: public:
virtual void EMU_DebugIdleEnter() {
SPU_Pause(1);
}
virtual void EMU_DebugIdleUpdate() { virtual void EMU_DebugIdleUpdate() {
gdbstub_wait(__stubs, -1L); gdbstub_wait(__stubs, -1L);
} }
virtual void EMU_DebugIdleWakeUp() {
SPU_Pause(0);
}
virtual void setStubs(gdbstub_handle_t stubs[2]) { virtual void setStubs(gdbstub_handle_t stubs[2]) {
this->__stubs[0] = stubs[0]; this->__stubs[0] = stubs[0];
this->__stubs[1] = stubs[1]; this->__stubs[1] = stubs[1];