mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-12 17:19:28 +01:00
Fix cases where breakpoints were skipped.
After reset or savestate load.
This commit is contained in:
1 parent
b8d798c3a5
commit
9d52ee4e21
1 file changed
+8
@@ -140,6 +140,10 @@ Jit::Jit(MIPSState *mips) : blocks(mips, this), mips_(mips)
|
||||
safeMemFuncs.Init(&thunks);
|
||||
|
||||
js.startDefaultPrefix = mips_->HasDefaultPrefix();
|
||||
|
||||
// The debugger sets this so that "go" on a breakpoint will actually... go.
|
||||
// But if they reset, we can end up hitting it by mistake, since it's based on PC and ticks.
|
||||
CBreakPoints::SetSkipFirst(0);
|
||||
}
|
||||
|
||||
Jit::~Jit() {
|
||||
@@ -158,6 +162,10 @@ void Jit::DoState(PointerWrap &p)
|
||||
} else {
|
||||
js.hasSetRounding = 1;
|
||||
}
|
||||
|
||||
// The debugger sets this so that "go" on a breakpoint will actually... go.
|
||||
// But if they load a state, we can end up hitting it by mistake, since it's based on PC and ticks.
|
||||
CBreakPoints::SetSkipFirst(0);
|
||||
}
|
||||
|
||||
// This is here so the savestate matches between jit and non-jit.
|
||||
|
||||
Reference in new issue
Block a user