GB: Fix SIO related issue

This commit is contained in:
retro-wertz 2018-07-06 17:37:53 +08:00 committed by Rafael Kitover
parent a8d0508cf2
commit fc42f88bd7
1 changed files with 3 additions and 1 deletions

View File

@ -992,7 +992,9 @@ void gbWriteMemory(register uint16_t address, register uint8_t value)
}
EmuReseted = false;
gbMemory[0xff02] = value;
if (gbSerialOn && (GetLinkMode() == LINK_GAMEBOY_IPC || GetLinkMode() == LINK_GAMEBOY_SOCKET || winGbPrinterEnabled)) {
if (gbSerialOn && (GetLinkMode() == LINK_GAMEBOY_IPC || GetLinkMode() == LINK_GAMEBOY_SOCKET
|| GetLinkMode() == LINK_DISCONNECTED || winGbPrinterEnabled)) {
gbSerialTicks = GBSERIAL_CLOCK_TICKS;
LinkIsWaiting = true;