mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix cases where breakpoints were skipped.
After reset or savestate load.
This commit is contained in:
parent
b8d798c3a5
commit
9d52ee4e21
1 changed files with 8 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue