From ec057b952b847791cf08b1eec7b261b6190843c7 Mon Sep 17 00:00:00 2001 From: LT-Schmiddy Date: Tue, 31 Dec 2024 17:56:57 -0500 Subject: [PATCH] More formatting and comments. --- patches/play_patches.c | 7 ++++--- src/game/recomp_api.cpp | 1 - 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/patches/play_patches.c b/patches/play_patches.c index 27c8164..73034bc 100644 --- a/patches/play_patches.c +++ b/patches/play_patches.c @@ -51,6 +51,7 @@ RECOMP_PATCH void Play_Main(GameState* thisx) { static Input* prevInput = NULL; PlayState* this = (PlayState*)thisx; + // @recomp If the reset game button was pressed, we'll handle that now. if (recomp_should_reset_game()) { do_reset_game(this); } @@ -195,12 +196,12 @@ RECOMP_PATCH void Play_Init(GameState* thisx) { // @recomp_event recomp_on_play_init(PlayState* this): A new PlayState is being initialized. recomp_on_play_init(this); + + // @recomp make the game reset button visible ONLY if we're not running the titlescreen sequence. if (!recomp_in_title_sequence) { recomp_set_reset_button_visibility(1); } - - - + if ((gSaveContext.respawnFlag == -4) || (gSaveContext.respawnFlag == -0x63)) { if (CHECK_EVENTINF(EVENTINF_TRIGGER_DAYTELOP)) { CLEAR_EVENTINF(EVENTINF_TRIGGER_DAYTELOP); diff --git a/src/game/recomp_api.cpp b/src/game/recomp_api.cpp index c295b02..50e8c86 100644 --- a/src/game/recomp_api.cpp +++ b/src/game/recomp_api.cpp @@ -182,5 +182,4 @@ extern "C" void recomp_should_reset_game(uint8_t* rdram, recomp_context* ctx) { extern "C" void recomp_set_reset_button_visibility(uint8_t* rdram, recomp_context* ctx) { uint8_t storeVal = _arg<0, uint8_t>(rdram, ctx); zelda64::set_reset_button_visibility((bool)storeVal); - } \ No newline at end of file