mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix a crash when switching between jit/interp.
This commit is contained in:
parent
90ed7a0d01
commit
df04bbe4dd
1 changed files with 4 additions and 0 deletions
|
@ -53,7 +53,11 @@ MIPSState::~MIPSState()
|
|||
void MIPSState::Reset()
|
||||
{
|
||||
if (MIPSComp::jit)
|
||||
{
|
||||
delete MIPSComp::jit;
|
||||
MIPSComp::jit = 0;
|
||||
}
|
||||
|
||||
if (PSP_CoreParameter().cpuCore == CPU_JIT)
|
||||
MIPSComp::jit = new MIPSComp::Jit(this);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue