diff --git a/GPU/Debugger/Breakpoints.cpp b/GPU/Debugger/Breakpoints.cpp index 1e1effafc..401acbcdd 100644 --- a/GPU/Debugger/Breakpoints.cpp +++ b/GPU/Debugger/Breakpoints.cpp @@ -322,6 +322,12 @@ void AddTextureChangeTempBreakpoint() { textureChangeTemp = true; } +void AddAnyTempBreakpoint() { + for (int i = 0; i < 256; ++i) { + AddCmdBreakpoint(i, true); + } +} + void RemoveAddressBreakpoint(u32 addr) { std::lock_guard guard(breaksLock); diff --git a/GPU/Debugger/Breakpoints.h b/GPU/Debugger/Breakpoints.h index 282b325dd..5a5ecb157 100644 --- a/GPU/Debugger/Breakpoints.h +++ b/GPU/Debugger/Breakpoints.h @@ -38,6 +38,8 @@ namespace GPUBreakpoints { void AddTextureBreakpoint(u32 addr, bool temp = false); void AddTextureChangeTempBreakpoint(); void AddRenderTargetBreakpoint(u32 addr, bool temp = false); + // Quick way to trigger GE debugger statically. + void AddAnyTempBreakpoint(); void RemoveAddressBreakpoint(u32 addr); void RemoveCmdBreakpoint(u8 cmd);