sameboy: fix possible crash on loadstate with gb printer active

This commit is contained in:
nattthebear 2017-09-29 18:07:11 -04:00
parent 961723ef32
commit 1532950961
1 changed files with 1 additions and 0 deletions

View File

@ -300,6 +300,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Nintendo.Gameboy
protected override void LoadStateBinaryInternal(BinaryReader reader)
{
UpdateCoreScanlineCallback(false);
_core.SetPrinterCallback(_printerCallback);
}
public bool IsCGBMode() => _cgb;