From fc4be4f2cc087d6b6089ef50996e55aea3fc79a6 Mon Sep 17 00:00:00 2001 From: "refraction@gmail.com" Date: Fri, 18 Oct 2013 13:03:22 +0000 Subject: [PATCH] VIF: Fix for Warship Gunner 2 Issue 1079 . On VU executes immediately followed by an unpack we will execute it immediately. I didn't look too deeply in to this but the game doesn't like the delays. Baldurs Gate still happy though. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5745 96395faa-99c1-11dd-bbfe-3dabce05a288 --- pcsx2/Vif_Codes.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pcsx2/Vif_Codes.cpp b/pcsx2/Vif_Codes.cpp index 3f917a689a..edcf8b39ae 100644 --- a/pcsx2/Vif_Codes.cpp +++ b/pcsx2/Vif_Codes.cpp @@ -367,6 +367,14 @@ vifOp(vifCode_MSCAL) { vuExecMicro(idx, (u16)(vifXRegs.code) << 3); vifX.cmd = 0; vifX.pass = 0; + if(GetVifX.vifpacketsize > 1) + { + //Warship Gunner 2 has a rather big dislike for the delays + if(((data[1] >> 24) & 0x60) == 0x60) // Immediate following Unpack + { + vifExecQueue(idx); + } + } } } pass3 { VifCodeLog("MSCAL"); }