From fc42f88bd748938ecd54b6b06ce5bf68c4f63925 Mon Sep 17 00:00:00 2001 From: retro-wertz Date: Fri, 6 Jul 2018 17:37:53 +0800 Subject: [PATCH] GB: Fix SIO related issue --- src/gb/GB.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gb/GB.cpp b/src/gb/GB.cpp index c89029c5..5c614bb2 100644 --- a/src/gb/GB.cpp +++ b/src/gb/GB.cpp @@ -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;