Changed CPS-3 driver to use MAME flash dumps, and added verification for CPS-3 driver back to ROM_VERIFY dat

This commit is contained in:
Barry Harris 2011-12-19 12:33:30 +00:00
parent 8118392020
commit 52fc455e32
3 changed files with 422 additions and 434 deletions

View File

@ -1082,11 +1082,15 @@ INT32 cps3Init()
ii = 0; offset = 0;
while (BurnDrvGetRomInfo(&pri, ii) == 0) {
if (pri.nType & BRF_PRG) {
nRet = BurnLoadRom(RomGame + offset, ii, 1);
if (nRet != 0) return 1;
offset += pri.nLen;
nRet = BurnLoadRom(RomGame + offset + 0, ii + 0, 4); if (nRet != 0) return 1;
nRet = BurnLoadRom(RomGame + offset + 1, ii + 1, 4); if (nRet != 0) return 1;
nRet = BurnLoadRom(RomGame + offset + 2, ii + 2, 4); if (nRet != 0) return 1;
nRet = BurnLoadRom(RomGame + offset + 3, ii + 3, 4); if (nRet != 0) return 1;
offset += pri.nLen * 4;
ii += 4;
} else {
ii++;
}
ii++;
}
be_to_le( RomGame, 0x1000000 );
cps3_decrypt_game();
@ -1095,10 +1099,13 @@ INT32 cps3Init()
ii = 0; offset = 0;
while (BurnDrvGetRomInfo(&pri, ii) == 0) {
if (pri.nType & (BRF_GRA | BRF_SND)) {
BurnLoadRom(RomUser + offset, ii, 1);
offset += pri.nLen;
BurnLoadRom(RomUser + offset + 0, ii + 0, 2);
BurnLoadRom(RomUser + offset + 1, ii + 1, 2);
offset += pri.nLen * 2;
ii += 2;
} else {
ii++;
}
ii++;
}
{

File diff suppressed because it is too large Load Diff

View File

@ -92,12 +92,6 @@ INT32 write_datfile(INT32 bIncMegadrive, FILE* fDat)
continue;
}
#if defined (ROM_VERIFY)
if ((BurnDrvGetHardwareCode() & HARDWARE_PUBLIC_MASK) == HARDWARE_CAPCOM_CPS3) {
continue;
}
#endif
strcpy(sgName, BurnDrvGetTextA(DRV_NAME));
strcpy(spName, ""); // make sure this string is empty before we start
strcpy(sbName, ""); // make sure this string is empty before we start