mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 13:47:57 +03:00
Improved detection.
For Resident Evil: Code Veronica.
This commit is contained in:
parent
e0858565d5
commit
32dafbb660
1 changed files with 6 additions and 0 deletions
|
@ -237,7 +237,9 @@ bool CBasicBlock::IsIdleLoopBlock() const
|
|||
{
|
||||
OP_BEQ = 0x04,
|
||||
OP_BNE = 0x05,
|
||||
OP_SLTIU = 0x0B,
|
||||
OP_XORI = 0x0E,
|
||||
OP_LUI = 0x0F,
|
||||
OP_LW = 0x23,
|
||||
};
|
||||
|
||||
|
@ -299,8 +301,12 @@ bool CBasicBlock::IsIdleLoopBlock() const
|
|||
return false;
|
||||
}
|
||||
break;
|
||||
case OP_LUI:
|
||||
//This always sets a value to a register, doesn't rely on previous state
|
||||
break;
|
||||
case OP_XORI:
|
||||
case OP_LW:
|
||||
case OP_SLTIU:
|
||||
if(rt != compareReg) return false;
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue