Small unpack bug with interpreted/partial transfers in fill mode (probably REALLY uncommon).

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4526 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
refraction 2011-04-02 19:23:20 +00:00
parent 74723011f6
commit ec41e24228
1 changed files with 2 additions and 2 deletions

View File

@ -149,7 +149,7 @@ _vifT int nVifUnpack(const u8* data) {
++vif.cl;
if (isFill) {
if (vif.cl < vifRegs.cycle.cl) size -= vSize;
if (vif.cl <= vifRegs.cycle.cl) size -= vSize;
else if (vif.cl == vifRegs.cycle.wl) vif.cl = 0;
}
else
@ -262,7 +262,7 @@ __ri void __fastcall _nVifUnpackLoop(const u8* data) {
if (isFill) {
//DevCon.WriteLn("isFill!");
if (vif.cl < vifRegs.cycle.cl) data += vSize;
if (vif.cl <= vifRegs.cycle.cl) data += vSize;
else if (vif.cl == vifRegs.cycle.wl) vif.cl = 0;
}
else