mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-02-23 22:52:34 +01:00
byuu says: More V30MZ implemented, a lot more to go. icarus now supports importing WS and WSC games. It expects them to have the correct file extension, same for GB and GBC. > Ugh, apparently HiDPI icarus doesn't let you press the check boxes. I set the flag value in the plist to false for now. Forgot to do it for higan, but hopefully I won't forget before release.
19 lines
712 B
C++
19 lines
712 B
C++
struct SufamiTurboCartridge {
|
|
SufamiTurboCartridge(const uint8_t* data, unsigned size);
|
|
|
|
string markup;
|
|
};
|
|
|
|
SufamiTurboCartridge::SufamiTurboCartridge(const uint8_t* data, unsigned size) {
|
|
if(size < 0x20000) return; //too small to be a valid game?
|
|
if(memcmp(data, "BANDAI SFC-ADX", 14)) return; //missing required header?
|
|
unsigned romsize = data[0x36] * 0x20000; //128KB
|
|
unsigned ramsize = data[0x37] * 0x800; //2KB
|
|
bool linkable = data[0x35] != 0x00; //TODO: unconfirmed
|
|
|
|
markup.append("board", linkable ? " linkable" : "", "\n");
|
|
markup.append(" rom name=program.rom size=0x", hex(romsize), "\n");
|
|
if(ramsize)
|
|
markup.append(" ram name=save.ram size=0x", hex(ramsize), "\n");
|
|
}
|