mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-14 06:50:29 +02:00
Make CBreakpoints an object
This commit is contained in:
1 parent
f692092159
commit
7992ff4627
26 files changed
+252
-258
No files matched your search
@@ -138,7 +138,7 @@ void WebSocketDisasmState::WriteDisasmLine(JsonWriter &json, const DisassemblyLi
|
||||
bool enabled = false;
|
||||
int breakpointOffset = -1;
|
||||
for (u32 i = 0; i < l.totalSize; i += 4) {
|
||||
if (CBreakPoints::IsAddressBreakPoint(addr + i, &enabled))
|
||||
if (g_breakpoints.IsAddressBreakPoint(addr + i, &enabled))
|
||||
breakpointOffset = i;
|
||||
if (breakpointOffset != -1 && enabled)
|
||||
break;
|
||||
@@ -148,7 +148,7 @@ void WebSocketDisasmState::WriteDisasmLine(JsonWriter &json, const DisassemblyLi
|
||||
json.pushDict("breakpoint");
|
||||
json.writeBool("enabled", enabled);
|
||||
json.writeUint("address", addr + breakpointOffset);
|
||||
auto cond = CBreakPoints::GetBreakPointCondition(addr + breakpointOffset);
|
||||
auto cond = g_breakpoints.GetBreakPointCondition(addr + breakpointOffset);
|
||||
if (cond)
|
||||
json.writeString("condition", cond->expressionString);
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user