From 6c01658d378a08b310f9a15f47d54cae5169df74 Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Sat, 5 Dec 2015 00:36:53 +0100 Subject: [PATCH] system: Do not send dbg command if dbg hook is not present. --- rpcs3/Emu/System.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/System.h b/rpcs3/Emu/System.h index 6e9438381e..775a45f3c4 100644 --- a/rpcs3/Emu/System.h +++ b/rpcs3/Emu/System.h @@ -121,7 +121,7 @@ public: void SendDbgCommand(DbgCommand cmd, class CPUThread* thread = nullptr) { - m_cb.send_dbg_command(cmd, thread); + if (m_cb.send_dbg_command) m_cb.send_dbg_command(cmd, thread); } // Returns a future object associated with the result of the function called from the GUI thread