IPU: Set ECD if start code is not 1xx

Onimusha 3 send 0x200 and expect that start code search finish on it.
Setting ECD here helps The Sims Bustin' Out
This commit is contained in:
Goatman13 2022-06-04 08:01:41 +02:00 committed by refractionpcsx2
parent 37f640ece2
commit 5469d59de9
1 changed files with 20 additions and 6 deletions

View File

@ -938,13 +938,20 @@ finish_idec:
return false; return false;
} }
start_check = UBITS(24); start_check = UBITS(24);
if (start_check == 1) if (start_check != 0)
{ {
ipuRegs.ctrl.SCD = 1; if (start_check == 1)
{
ipuRegs.ctrl.SCD = 1;
}
else
{
ipuRegs.ctrl.ECD = 1;
}
break; break;
} }
DUMPBITS(8); DUMPBITS(8);
} while (start_check != 1); } while (1);
} }
} }
[[fallthrough]]; [[fallthrough]];
@ -1229,13 +1236,20 @@ __fi bool mpeg2_slice()
return false; return false;
} }
start_check = UBITS(24); start_check = UBITS(24);
if (start_check == 1) if (start_check != 0)
{ {
ipuRegs.ctrl.SCD = 1; if (start_check == 1)
{
ipuRegs.ctrl.SCD = 1;
}
else
{
ipuRegs.ctrl.ECD = 1;
}
break; break;
} }
DUMPBITS(8); DUMPBITS(8);
} while (start_check != 1); } while (1);
} }
} }
[[fallthrough]]; [[fallthrough]];