BizHawk
BizHawk copied to clipboard
Only SameBoy can load some homebrew ROMs
In Gambatte, the "Core Reported BoardID" retuns "NULL" (seen in build_asms_debug build) with a lot of spaces in the log window when trying to load some homebrew ROMs. This makes it IMPOSSIBLE to load some homebrew DMG or CGB ROMs with Gambatte. Affected ROMs (I found): sierpinskiboy.smol.cgb (0x150 size patch) seems to relate to #3244 but it is locked
The issue isn't that NULL has a "lot of spaces" (really it's just a ton of zeros). In fact Gambatte starts up just fine. "NULL" too just means ROM only (i.e. no mapper present).
The "issue" here is Gambatte just loads in every full ROM bank then pads 0xFFs until it's a power of two. 0x150 is smaller than a full ROM bank so it just copies in nothing and 0xFFs the entire ROM space. You could pad it up to 0x4000 and it'd probably load in "correctly."
I patched the ROM again and it works.