Build the Virtual Console patch with make crystal11_vc
(#882)
Fixes #813
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user