GB: Add another BIOS revision
Jeffrey Pfau jeffrey@endrift.com
Sat, 17 Sep 2016 16:47:37 -0700
1 files changed,
3 insertions(+),
0 deletions(-)
jump to
M
src/gb/gb.c
→
src/gb/gb.c
@@ -23,6 +23,7 @@ const uint32_t SGB_LR35902_FREQUENCY = 0x418B1E;
const uint32_t GB_COMPONENT_MAGIC = 0x400000; +#define DMG_BIOS_CHECKSUM 0xC2F5CC97 #define DMG_2_BIOS_CHECKSUM 0x59C8598E #define CGB_BIOS_CHECKSUM 0x41884E46@@ -306,6 +307,7 @@ }
bool GBIsBIOS(struct VFile* vf) { switch (_GBBiosCRC32(vf)) { + case DMG_BIOS_CHECKSUM: case DMG_2_BIOS_CHECKSUM: case CGB_BIOS_CHECKSUM: return true;@@ -400,6 +402,7 @@ return;
} if (gb->biosVf) { switch (_GBBiosCRC32(gb->biosVf)) { + case DMG_BIOS_CHECKSUM: case DMG_2_BIOS_CHECKSUM: gb->model = GB_MODEL_DMG; break;