summaryrefslogtreecommitdiff
path: root/mobile
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 /mobile
parent775b5d046c7f42a3bd8034b92da92e25969bdbf7 (diff)
Build the Virtual Console patch with `make crystal11_vc` (#882)
Fixes #813
Diffstat (limited to 'mobile')
-rw-r--r--mobile/mobile_40.asm16
1 files changed, 16 insertions, 0 deletions
diff --git a/mobile/mobile_40.asm b/mobile/mobile_40.asm
index e01b7c8ce..94cb4f6c8 100644
--- a/mobile/mobile_40.asm
+++ b/mobile/mobile_40.asm
@@ -1530,6 +1530,7 @@ Function1009f3:
_LinkBattleSendReceiveAction:
call .StageForSend
ld [wLinkBattleSentAction], a
+ vc_hook send_byt2
farcall PlaceWaitingText
ld a, [wLinkMode]
cp LINK_MOBILE
@@ -1584,20 +1585,35 @@ _LinkBattleSendReceiveAction:
inc a
jr z, .waiting
+ vc_hook send_byt2_ret
+ vc_patch send_byt2_wait
+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_hook send_dummy
+ vc_patch send_dummy_wait
+if DEF(_CRYSTAL11_VC)
+ ld b, 26
+else
ld b, 10
+endc
+ vc_patch_end
.acknowledge
call DelayFrame
call LinkDataReceived
dec b
jr nz, .acknowledge
+ vc_hook send_dummy_end
ld a, [wOtherPlayerLinkAction]
ld [wBattleAction], a
ret