You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Build the Virtual Console patch with make crystal11_vc
(#882)
Fixes #813
This commit is contained in:
@@ -362,7 +362,9 @@ Menu_WasButtonPressed:
|
||||
call GetMenuJoypad
|
||||
and a
|
||||
ret z
|
||||
vc_hook print_forbid_3
|
||||
scf
|
||||
vc_hook print_forbid_2
|
||||
ret
|
||||
|
||||
_2DMenuInterpretJoypad:
|
||||
|
@@ -161,6 +161,15 @@ AddHallOfFameEntry:
|
||||
ld bc, wHallOfFamePokemonListEnd - wHallOfFamePokemonList + 1
|
||||
call CopyBytes
|
||||
call CloseSRAM
|
||||
; This vc_hook causes the Virtual Console to set [sMobileEventIndex] and [sMobileEventIndexBackup]
|
||||
; to MOBILE_EVENT_OBJECT_GS_BALL ($b), which enables you to get the GS Ball, take it to Kurt, and
|
||||
; encounter Celebi. It assumes that sMobileEventIndex and sMobileEventIndexBackup are at their
|
||||
; original addresses.
|
||||
vc_hook BiographySave_ret
|
||||
vc_assert BANK(sMobileEventIndex) == $1 && sMobileEventIndex == $be3c, \
|
||||
"sMobileEventIndex is no longer located at 01:be3c."
|
||||
vc_assert BANK(sMobileEventIndexBackup) == $1 && sMobileEventIndexBackup == $be44, \
|
||||
"sMobileEventIndexBackup is no longer located at 01:be44."
|
||||
ret
|
||||
|
||||
SaveGameData:
|
||||
|
Reference in New Issue
Block a user