Reporting: Disable when debugger methods used.

This won't catch all means of hacking memory, but will catch some.
Trying to reduce noise in reporting from debugging.
This commit is contained in:
Unknown W. Brackets committed 2022-07-30 18:21:32 -07:00
1 parent fc2e3f3db5
commit 1233d1d376
11 files changed
+43 -6

No files matched your search

@@ -24,6 +24,7 @@
#include "Core/HLE/sceKernelThread.h"
#include "Core/MIPS/MIPS.h"
#include "Core/MIPS/MIPSDebugInterface.h"
#include "Core/Reporting.h"
DebuggerSubscriber *WebSocketCPUCoreInit(DebuggerEventHandlerMap &map) {
// No need to bind or alloc state, these are all global.
@@ -365,6 +366,8 @@ void WebSocketCPUSetReg(DebuggerRequest &req) {
return;
}
Reporting::NotifyDebugger();
JsonWriter &json = req.Respond();
// Repeat it back just to avoid confusion on how it parsed.
json.writeInt("category", cat);