mirror of
https://github.com/Zelda64Recomp/Zelda64Recomp.git
synced 2026-04-28 05:01:39 +00:00
fix signature for recomp_set_allow_no_ocarina_tf, add new event recomp_after_play_init
This commit is contained in:
parent
21ca074bf7
commit
e87cc67a25
1 changed files with 6 additions and 2 deletions
|
|
@ -151,11 +151,12 @@ void DayTelop_Init_NORELOCATE(GameState*);
|
||||||
void TitleSetup_Init_NORELOCATE(GameState*);
|
void TitleSetup_Init_NORELOCATE(GameState*);
|
||||||
|
|
||||||
RECOMP_DECLARE_EVENT(recomp_on_play_init(PlayState* this));
|
RECOMP_DECLARE_EVENT(recomp_on_play_init(PlayState* this));
|
||||||
|
RECOMP_DECLARE_EVENT(recomp_after_play_init(PlayState* this));
|
||||||
|
|
||||||
bool allow_no_ocarina_tf = false;
|
bool allow_no_ocarina_tf = false;
|
||||||
|
|
||||||
// @recomp_export void recomp_set_allow_no_ocarina(bool new_val): Set whether to force Termina Field to load normally even if Link has no ocarina.
|
// @recomp_export void recomp_set_allow_no_ocarina_tf(bool new_val): Set whether to force Termina Field to load normally even if Link has no ocarina.
|
||||||
RECOMP_EXPORT void recomp_set_allow_no_ocarina(bool new_val) {
|
RECOMP_EXPORT void recomp_set_allow_no_ocarina_tf(bool new_val) {
|
||||||
allow_no_ocarina_tf = new_val;
|
allow_no_ocarina_tf = new_val;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -436,4 +437,7 @@ RECOMP_PATCH void Play_Init(GameState* thisx) {
|
||||||
gSaveContext.respawnFlag = 0;
|
gSaveContext.respawnFlag = 0;
|
||||||
sBombersNotebookOpen = false;
|
sBombersNotebookOpen = false;
|
||||||
BombersNotebook_Init(&sBombersNotebook);
|
BombersNotebook_Init(&sBombersNotebook);
|
||||||
|
|
||||||
|
// @recomp_event recomp_after_play_init(PlayState* this): The new PlayState has finished constructing.
|
||||||
|
recomp_after_play_init(this);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue