mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +00:00
DetourGenerator: Fix wrong mnemonic check
This commit is contained in:
1 parent
ff4e1b7c7f
commit
3b64e9bb15
1 file changed
+1
-1
@@ -134,7 +134,7 @@ namespace BepInEx.IL2CPP
|
||||
|
||||
if (readOverflowArea)
|
||||
{
|
||||
if (instr.Mnemonic != Mnemonic.Int && instr.Mnemonic != Mnemonic.Nop)
|
||||
if (instr.Mnemonic != Mnemonic.Int3 && instr.Mnemonic != Mnemonic.Nop)
|
||||
throw new Exception("Function is too short to hook");
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user