mirror of
https://github.com/pret/pokered.git
synced 2024-10-22 22:55:31 +00:00
Add hSerialConnectionStatus vc_assert (#354)
This commit is contained in:
parent
27d0b146ad
commit
0fd9ba5670
1 changed files with 8 additions and 0 deletions
|
@ -27,7 +27,15 @@ CableClubNPC::
|
|||
xor a
|
||||
ldh [hSerialReceiveData], a
|
||||
ld a, START_TRANSFER_EXTERNAL_CLOCK
|
||||
; This vc_hook causes the Virtual Console to set [hSerialConnectionStatus] to
|
||||
; USING_INTERNAL_CLOCK, which allows the player to proceed past the link
|
||||
; receptionist's "Please wait." It assumes that hSerialConnectionStatus is at
|
||||
; its original address.
|
||||
vc_hook linkCable_fake_begin
|
||||
vc_assert hSerialConnectionStatus == $ffaa, \
|
||||
"hSerialConnectionStatus is no longer located at 00:ffaa"
|
||||
vc_assert USING_INTERNAL_CLOCK == $02, \
|
||||
"USING_INTERNAL_CLOCK is no longer equal to $02."
|
||||
ldh [rSC], a
|
||||
ld a, [wLinkTimeoutCounter]
|
||||
dec a
|
||||
|
|
Loading…
Reference in a new issue