all repos — mgba @ e2d6bc38ffa991717dfffbce115ab6f60b4546b2

mGBA Game Boy Advance Emulator

GBA SIO: Fix Dolphin disconnecting
Vicki Pfau vi@endrift.com
Sat, 27 Feb 2021 17:12:03 -0800
commit

e2d6bc38ffa991717dfffbce115ab6f60b4546b2

parent

512bdf9c60038024a1afb435aae71ce9178c55cf

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M src/gba/sio/dolphin.csrc/gba/sio/dolphin.c

@@ -97,6 +97,10 @@ }

void GBASIODolphinProcessEvents(struct mTiming* timing, void* context, uint32_t cyclesLate) { struct GBASIODolphin* dol = context; + if (SOCKET_FAILED(dol->data)) { + return; + } + dol->clockSlice -= cyclesLate; int32_t clockSlice;