From fb5b7a34e3d37b7b75aa1d4fdbe5fdc969dc0a00 Mon Sep 17 00:00:00 2001 From: refraction Date: Thu, 24 Jul 2014 18:21:17 +0100 Subject: [PATCH] VIF: Modification to illegal IRQ's on NOP's Fixes #162 . Some games like Looney Tunes Back In Action use the lower 16 bits for special codes, so we only check the command info area (not the command itself of course, that would be silly). --- pcsx2/Vif_Codes.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pcsx2/Vif_Codes.cpp b/pcsx2/Vif_Codes.cpp index c2dd42db24..1512ebeaaf 100644 --- a/pcsx2/Vif_Codes.cpp +++ b/pcsx2/Vif_Codes.cpp @@ -446,7 +446,10 @@ vifOp(vifCode_Nop) { //If the top bit was set to interrupt, we don't want it to take commands from a bad code if it's interpreted as a nop by us. //Onimusha - Blade Warriors - if ((vifXRegs.code & 0x80000000) && (vifXRegs.code & 0xFFFFF) != 0) GetVifX.irq = 0; + if ((vifXRegs.code & 0x80000000) && (vifXRegs.code & 0xFF0000) != 0) + { + GetVifX.irq = 0; + } if (GetVifX.vifpacketsize > 1) {