mirror of https://github.com/mgba-emu/mgba.git
GBA SIO: Fix Dolphin disconnecting
This commit is contained in:
parent
512bdf9c60
commit
e2d6bc38ff
|
@ -97,6 +97,10 @@ static bool GBASIODolphinLoad(struct GBASIODriver* driver) {
|
||||||
|
|
||||||
void GBASIODolphinProcessEvents(struct mTiming* timing, void* context, uint32_t cyclesLate) {
|
void GBASIODolphinProcessEvents(struct mTiming* timing, void* context, uint32_t cyclesLate) {
|
||||||
struct GBASIODolphin* dol = context;
|
struct GBASIODolphin* dol = context;
|
||||||
|
if (SOCKET_FAILED(dol->data)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
dol->clockSlice -= cyclesLate;
|
dol->clockSlice -= cyclesLate;
|
||||||
|
|
||||||
int32_t clockSlice;
|
int32_t clockSlice;
|
||||||
|
|
Loading…
Reference in New Issue