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:
parent
7b3439a6b6
commit
94050c161b
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue