Merge pull request #492 from splash5/snes-sfz2

Support for dumping "Street Fighter Zero 2" (SDD1 ROM Only)
This commit is contained in:
sanni 2022-08-24 07:39:01 +02:00 committed by GitHub
commit dbb2477373
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -748,6 +748,9 @@ void getCartInfo_SNES() {
println_Msg(F("SA1 RAM BATT"));
romType = SA;
}
else if (romChips == 67) {
println_Msg(F("SDD1"));
}
else if (romChips == 69) {
println_Msg(F("SDD1 BATT"));
}
@ -957,6 +960,11 @@ boolean checkcart_SNES() {
numBanks = 96;
romType = HI;
}
else if (romChips == 67) {
romSize = 32;
numBanks = 64;
romType = HI;
}
else if (romChips == 243) {
cx4Type = snesHeader[0xFFC9 - headerStart] & 0xF;
if (cx4Type == 2) { // X2
@ -1338,7 +1346,7 @@ void readROM_SNES() {
}
// Dump SDD1 High-type ROM
else if ((romType == HI) && (romChips == 69)) {
else if ((romType == HI) && (romChips == 69 || romChips == 67)) {
println_Msg(F("Dumping SDD1 HiRom"));
display_Update();
controlIn_SNES();