mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-12 21:13:49 -06:00
2 lines
1.6 KiB
JSON
2 lines
1.6 KiB
JSON
{"extras":[{"files":["SGB1.sfc"],"note":"SGB1.sfc is the default of the bsnes_sgb_bios option, SGB2.sfc when the user picks it.","profile":"bsnes","required":true,"source_ref":"libretro/bsnes-libretro@05439f96 bsnes/target-libretro/libretro.cpp:937-952, bsnes/target-libretro/libretro.cpp:395-400, bsnes/target-libretro/libretro_core_options.h:689-693","system":"nintendo-sgb","trigger":{"extensions":[".gb",".gbc"]}},{"files":["sgb_bios.bin"],"profile":"mgba","required":false,"source_ref":"libretro/mgba@7a12d6d4 src/gb/gb.c:938-946, src/platform/libretro/libretro.c:2066-2116","system":"nintendo-sgb","trigger":{"header":{"reader":"gb-sgb-flag","values":["sgb"]}}}],"format_version":1,"headers":{"cores":{"mgba":{"note":"Only when the model option is autodetect. A forced model decides alone.","order":["gb-sgb-flag"],"re_read":true,"source_ref":"libretro/mgba@7a12d6d4 src/gb/gb.c:938-946"}},"readers":{"gb-sgb-flag":{"applies_to":{"extensions":[".gb",".gbc",".sgb",".zip"],"media":"cartridge"},"decode":{"all":[{"equals":0,"mask":128,"offset":323},{"equals":3,"offset":326},{"equals":51,"offset":331}],"kind":"predicate","otherwise":{"label":"not-sgb"},"then":{"label":"sgb"}},"description":"With the model left on autodetect, mGBA reads the cartridge header at 0x100. CGB flag bit 7 at 0x143 picks the Game Boy Color first. Else 0x146 equal to 0x03 with the old licensee code 0x33 at 0x14B picks the Super Game Boy, and anything else the original Game Boy.","location":{"encoding":"bytes","length":9,"offset":323},"re_read":true,"source_ref":"libretro/mgba@7a12d6d4 src/gb/gb.c:938-946"}}},"system":"nintendo-sgb"}
|