Skip to content

Added a time multiplier for the final frog song to make it more lenient - #849

Merged
HylianFreddy merged 10 commits into
gamestabled:mainfrom
viccie211:feature/more-time-on-frog-song
Aug 23, 2026
Merged

Added a time multiplier for the final frog song to make it more lenient#849
HylianFreddy merged 10 commits into
gamestabled:mainfrom
viccie211:feature/more-time-on-frog-song

Conversation

@viccie211

Copy link
Copy Markdown
Contributor

No description provided.

@viccie211
viccie211 marked this pull request as draft August 10, 2026 06:38
@viccie211

Copy link
Copy Markdown
Contributor Author

Oh I seem to have bungled it up. Please wait with reviewing.

viccie211 and others added 3 commits August 10, 2026 09:27
…/OoT3D_Randomizer into feature/more-time-on-frog-song

# Conflicts:
#	code/src/actors/frog.c
#	code/src/main.c
@viccie211
viccie211 marked this pull request as ready for review August 10, 2026 07:29
@viccie211

Copy link
Copy Markdown
Contributor Author

Fixed it, it's ready for review again

Comment thread code/src/asm/hooks.s Outdated
mov r2,r0
pop {r0,r1,r3-r12,lr}
strh r2,[r1,#0x42]
b 0x381208

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this branch be linked to the correct offset for the EU version? Or do I need to do something else with it?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine, addresses outside the range 0x419E18-0x4A5AFF are the same in both versions. And there are a lot of hard-coded addresses in hooks.s still, so this won't be an outlier

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally I'd recommend using a bl in the hook and bx lr here, there are times where hard-coded addresses are the only feasible option but I'd prefer to keep them to a minimum.

This isn't always available as an option, but because the function we're patching has already stored the link register on the stack and it won't be used again until the next bl where it'll be overwritten a couple lines later it's safe to do in this instance.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I will change that then!

@HylianFreddy HylianFreddy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me, I just have some code style suggestions.

Comment thread shared/s_settings.h Outdated
Comment thread source/descriptions.cpp Outdated
Comment thread code/src/actors/frog.c Outdated
Comment thread code/src/main.c Outdated
Comment thread source/settings.cpp Outdated
Comment thread source/settings.cpp Outdated
viccie211 and others added 3 commits August 12, 2026 09:13
Co-authored-by: HylianFreddy <82058772+HylianFreddy@users.noreply.github.com>
Co-authored-by: HylianFreddy <82058772+HylianFreddy@users.noreply.github.com>
Co-authored-by: HylianFreddy <82058772+HylianFreddy@users.noreply.github.com>
@HylianFreddy
HylianFreddy merged commit acd0e71 into gamestabled:main Aug 23, 2026
2 checks passed
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.

3 participants