summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
authorvulcandth <vulcandth@gmail.com>2022-03-12 17:34:04 -0600
committerGitHub <noreply@github.com>2022-03-12 18:34:04 -0500
commit31c3c94d64e1ac1e40c95acfda7de8b99b4f302b (patch)
tree274ec3a4fb4cacaa3d0f88c713085cfb5a3c85d1 /home
parent775b5d046c7f42a3bd8034b92da92e25969bdbf7 (diff)
Build the Virtual Console patch with `make crystal11_vc` (#882)
Fixes #813
Diffstat (limited to 'home')
-rw-r--r--home/serial.asm14
1 files changed, 14 insertions, 0 deletions
diff --git a/home/serial.asm b/home/serial.asm
index 20a9aff72..e210ef1cb 100644
--- a/home/serial.asm
+++ b/home/serial.asm
@@ -290,6 +290,7 @@ Serial_SyncAndExchangeNybble:: ; unreferenced
jp WaitLinkTransfer ; pointless
WaitLinkTransfer::
+ vc_hook send_send_buf2
ld a, $ff
ld [wOtherPlayerLinkAction], a
.loop
@@ -317,14 +318,26 @@ WaitLinkTransfer::
inc a
jr z, .loop
+ vc_patch Network10
+if DEF(_CRYSTAL11_VC)
+ ld b, 26
+else
ld b, 10
+endc
+ vc_patch_end
.receive
call DelayFrame
call LinkTransfer
dec b
jr nz, .receive
+ vc_patch Network11
+if DEF(_CRYSTAL11_VC)
+ ld b, 26
+else
ld b, 10
+endc
+ vc_patch_end
.acknowledge
call DelayFrame
call LinkDataReceived
@@ -333,6 +346,7 @@ WaitLinkTransfer::
ld a, [wOtherPlayerLinkAction]
ld [wOtherPlayerLinkMode], a
+ vc_hook send_send_buf2_ret
ret
LinkTransfer::