Compare commits

..

No commits in common. "be789d40c9ffaa43925ba47d6fbf82780d8876e4" and "a53b916ec747cd885123edcc90dbecbc73f7f6d7" have entirely different histories.

3 changed files with 1 additions and 11 deletions

View File

@ -747,23 +747,18 @@ RECOMP_EXPORT void recomp_set_owls_quit_game(bool new_val)
owls_quit_game = new_val; owls_quit_game = new_val;
} }
RECOMP_DECLARE_EVENT(recomp_on_owl_update(ObjWarpstone* this, PlayState* play));
RECOMP_DECLARE_EVENT(recomp_on_owl_save(ObjWarpstone* this, PlayState* play)); RECOMP_DECLARE_EVENT(recomp_on_owl_save(ObjWarpstone* this, PlayState* play));
RECOMP_DECLARE_EVENT(recomp_after_owl_save(ObjWarpstone* this, PlayState* play));
// @recomp If autosave is enabled, skip the part of the owl statue dialog that talks about the file being deleted on load, since it's not true. // @recomp If autosave is enabled, skip the part of the owl statue dialog that talks about the file being deleted on load, since it's not true.
RECOMP_PATCH void ObjWarpstone_Update(Actor* thisx, PlayState* play) { RECOMP_PATCH void ObjWarpstone_Update(Actor* thisx, PlayState* play) {
ObjWarpstone* this = (ObjWarpstone*)thisx; ObjWarpstone* this = (ObjWarpstone*)thisx;
s32 pad; s32 pad;
recomp_on_owl_update(this, play);
if (this->isTalking) { if (this->isTalking) {
if (Actor_TextboxIsClosing(&this->dyna.actor, play)) { if (Actor_TextboxIsClosing(&this->dyna.actor, play)) {
this->isTalking = false; this->isTalking = false;
} else if ((Message_GetState(&play->msgCtx) == TEXT_STATE_CHOICE) && Message_ShouldAdvance(play)) { } else if ((Message_GetState(&play->msgCtx) == TEXT_STATE_CHOICE) && Message_ShouldAdvance(play)) {
if (play->msgCtx.choiceIndex != 0) { if (play->msgCtx.choiceIndex != 0) {
recomp_on_owl_save(this, play);
Audio_PlaySfx_MessageDecide(); Audio_PlaySfx_MessageDecide();
if (!owls_quit_game) { if (!owls_quit_game) {
Message_CloseTextbox(play); Message_CloseTextbox(play);
@ -773,7 +768,7 @@ RECOMP_PATCH void ObjWarpstone_Update(Actor* thisx, PlayState* play) {
play->msgCtx.unk120D6 = 0; play->msgCtx.unk120D6 = 0;
play->msgCtx.unk120D4 = 0; play->msgCtx.unk120D4 = 0;
gSaveContext.save.owlWarpId = OBJ_WARPSTONE_GET_OWL_WARP_ID(&this->dyna.actor); gSaveContext.save.owlWarpId = OBJ_WARPSTONE_GET_OWL_WARP_ID(&this->dyna.actor);
recomp_after_owl_save(this, play); recomp_on_owl_save(this, play);
} else { } else {
Message_CloseTextbox(play); Message_CloseTextbox(play);
} }

View File

@ -16,7 +16,6 @@ void controls_play_update(PlayState* play) {
RECOMP_PATCH void Play_Main(GameState* thisx) { RECOMP_PATCH void Play_Main(GameState* thisx) {
static Input* prevInput = NULL; static Input* prevInput = NULL;
PlayState* this = (PlayState*)thisx; PlayState* this = (PlayState*)thisx;
recomp_on_play_main(this); recomp_on_play_main(this);
// @recomp // @recomp

View File

@ -7,8 +7,6 @@ void Main_InitMemory(void);
void Main_InitScreen(void); void Main_InitScreen(void);
RECOMP_DECLARE_EVENT(recomp_on_init());
// @recomp Patched to load the code segment in the recomp runtime. // @recomp Patched to load the code segment in the recomp runtime.
RECOMP_PATCH void Main_Init(void) { RECOMP_PATCH void Main_Init(void) {
DmaRequest dmaReq; DmaRequest dmaReq;
@ -16,8 +14,6 @@ RECOMP_PATCH void Main_Init(void) {
OSMesg msg[1]; OSMesg msg[1];
size_t prevSize; size_t prevSize;
recomp_on_init();
osCreateMesgQueue(&mq, msg, ARRAY_COUNT(msg)); osCreateMesgQueue(&mq, msg, ARRAY_COUNT(msg));
prevSize = gDmaMgrDmaBuffSize; prevSize = gDmaMgrDmaBuffSize;