GBA SIO: Fix Dolphin disconnecting

This commit is contained in:
Vicki Pfau 2021-02-27 17:12:03 -08:00
parent 512bdf9c60
commit e2d6bc38ff
1 changed files with 4 additions and 0 deletions

View File

@ -97,6 +97,10 @@ static bool GBASIODolphinLoad(struct GBASIODriver* driver) {
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;