pizza: bomb out the same way libsnes does if an attempt is made to load a CGB rom in SGB

This commit is contained in:
nattthebear 2017-07-01 08:15:49 -04:00
parent 7b3439a6b6
commit 94050c161b
1 changed files with 5 additions and 0 deletions

View File

@ -39,6 +39,11 @@ namespace BizHawk.Emulation.Cores.Consoles.Nintendo.Gameboy
DefaultFpsDenominator = TICKSPERFRAME
})
{
if (sgb && (rom[0x143] & 0xc0) == 0xc0)
{
throw new CGBNotSupportedException();
}
_pizza = PreInit<LibPizza>(new PeRunnerOptions
{
Filename = "pizza.wbx",