mirror of
https://github.com/afska/gba-link-connection.git
synced 2026-09-07 00:16:15 -05:00
FIX: DLC Loader now syncs data with game
This commit is contained in:
@@ -72,6 +72,8 @@ inline void acknowledgeSerialInterrupt() {
|
||||
// ---
|
||||
|
||||
bool send(u16 data, CancelCallback cancel) {
|
||||
setData(data);
|
||||
|
||||
while (!didSerialInterruptOccur()) {
|
||||
if (cancel())
|
||||
return false;
|
||||
@@ -80,8 +82,6 @@ bool send(u16 data, CancelCallback cancel) {
|
||||
if (assignedPlayerId() != 1)
|
||||
return false;
|
||||
|
||||
setData(data);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user