aboutsummaryrefslogtreecommitdiffstats
path: root/engine/link/cable_club.asm
diff options
context:
space:
mode:
authorvulcandth <vulcandth@gmail.com>2022-03-26 21:05:06 -0500
committerGitHub <noreply@github.com>2022-03-26 22:05:06 -0400
commitfbaa5c9d4b48c000a52860a8392fc423c4e312f9 (patch)
tree80c5d8b0458ab6a2c2f1995ed0addd1f6cb5570f /engine/link/cable_club.asm
parentRefactor pkmncompress.c to use common.h (diff)
downloadpokeyellow-fbaa5c9d4b48c000a52860a8392fc423c4e312f9.tar.gz
pokeyellow-fbaa5c9d4b48c000a52860a8392fc423c4e312f9.tar.xz
pokeyellow-fbaa5c9d4b48c000a52860a8392fc423c4e312f9.zip
Build the Virtual Console patch with `make yellow_vc` (#80)
Diffstat (limited to 'engine/link/cable_club.asm')
-rw-r--r--engine/link/cable_club.asm3
1 files changed, 3 insertions, 0 deletions
diff --git a/engine/link/cable_club.asm b/engine/link/cable_club.asm
index 0c653cc8..aa2ff15a 100644
--- a/engine/link/cable_club.asm
+++ b/engine/link/cable_club.asm
@@ -130,12 +130,14 @@ CableClub_DoBattleOrTradeAgain:
ld hl, wSerialPlayerDataBlock
ld de, wSerialEnemyDataBlock
ld bc, $1a8
+ vc_hook Network424
call Serial_ExchangeBytes
ld a, SERIAL_NO_DATA_BYTE
ld [de], a
ld hl, wSerialPartyMonsPatchList
ld de, wSerialEnemyMonsPatchList
ld bc, $c8
+ vc_hook Network200
call Serial_ExchangeBytes
ld a, (1 << SERIAL) | (1 << TIMER) | (1 << VBLANK)
ldh [rIE], a
@@ -866,6 +868,7 @@ TradeCenter_Trade:
ld de, TradeCompleted
call PlaceString
predef SaveSAVtoSRAM2
+ vc_hook save_game_end
ld c, 50
call DelayFrames
xor a