From 0fd9ba5670e4f5075b2ef9697df7b5226148dce9 Mon Sep 17 00:00:00 2001 From: vulcandth Date: Sun, 17 Apr 2022 13:44:57 -0500 Subject: [PATCH] Add hSerialConnectionStatus vc_assert (#354) --- engine/link/cable_club_npc.asm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/engine/link/cable_club_npc.asm b/engine/link/cable_club_npc.asm index e2a9bc88..b4fb4090 100644 --- a/engine/link/cable_club_npc.asm +++ b/engine/link/cable_club_npc.asm @@ -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