snes: add special LoRom mapping (Derby Stallion 96 and Sound Novel Tsukuru)

This commit is contained in:
Sergey Dvodnenko
2020-10-25 17:59:56 +02:00
committed by GitHub
parent 07e0b2437e
commit c01425d99a

View File

@@ -166,8 +166,18 @@ uint8_t* snes_get_header(fileTYPE *f)
}
}
//Rom type: 0-Low, 1-High, 2-ExHigh
hdr[1] = (addr == 0x00ffc0) ? 1 : (addr == 0x40ffc0) ? 2 : 0;
bool has_bsx_slot = true;
if (buf[addr - 14] == 'Z' && buf[addr - 11] == 'J' &&
((buf[addr - 13] >= 'A' && buf[addr - 13] <= 'Z') || (buf[addr - 13] >= '0' && buf[addr - 13] <= '9')) &&
(buf[addr + Company] == 0x33 || (buf[addr - 10] == 0x00 && buf[addr - 4] == 0x00)) ) {
has_bsx_slot = true;
}
//Rom type: 0-Low, 1-High, 2-ExHigh, 3-SpecialLoRom
hdr[1] = (addr == 0x00ffc0) ? 1 :
(addr == 0x40ffc0) ? 2 :
has_bsx_slot ? 3 :
0;
//BSX 3
if (is_bsx_bios) {