Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Draft] Keep ZR Waterfall open after playing once #4547

Draft
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

Gedof
Copy link

@Gedof Gedof commented Nov 14, 2024

I was working on this before seeing there was already a PR for it, but I decided to make a PR anyway for feedback. It is my first time messing with the game hooks and trying to make something following the project practices.

There are two options:
One makes it so that the waterfall keeps open after playing Zelda's Lullaby even after reloading the scene or the file.
The other appears if you selected the first and lets you close it up by playing the song again. It also persists through scenes and loading the file.
Enhancements>Gameplay>Timesavers
image

2024-11-14.18-41-42-1.mp4

…as make it togglable.

 - Added menu options
 - Added save variable
 - Added actor init and update hooks
@Malkierian
Copy link
Contributor

To be honest, for what you were trying to accomplish here, I think you did quite well. No intrusion into src (although I would probably ask if the comments you added for documentation were pulled from decomp or if they had any equivalent there), using the appropriate hooks, etc.

I still don't have a firm grasp on those hooks, but probably the only thing that would improve it is applying the dynamic registration/unregistration that's exhibited by other enhancements such that the hook doesn't get processed if the enhancement isn't enabled. Someone else would probably have to help you figure out how exactly to do that.

soh/soh/SohMenuBar.cpp Outdated Show resolved Hide resolved
@Pepper0ni
Copy link
Contributor

With the one we were comparing this to merged, this can probably be closed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants