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

Match zMusicUnpause #391

Merged
merged 1 commit into from
Oct 12, 2024
Merged

Match zMusicUnpause #391

merged 1 commit into from
Oct 12, 2024

Conversation

escape209
Copy link
Contributor

Thanks @tgsm
Also remove outdated comment and match getCurrLevelMusicEnum linkage
Tried to find more stuff to put in here but it's a tough file 💀

@@ -38,7 +38,7 @@ struct zMusicTrackInfo

void volume_reset();
void zMusicRefreshVolume();
S32 getCurrLevelMusicEnum();
static S32 getCurrLevelMusicEnum();
Copy link
Member

Choose a reason for hiding this comment

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

This function declaration should be removed from the header since other cpp files won't be able to call this function

@@ -114,7 +114,6 @@ void zMusicInit()
volume_reset();
}

// Correct, but won't work due to the switch case jump table (messes with offsets)
S32 getCurrLevelMusicEnum()
Copy link
Member

Choose a reason for hiding this comment

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

Looks like this should be static since you changed the prototype?

@escape209
Copy link
Contributor Author

Integrated both of the changes

@SquareMan SquareMan merged commit 02ef034 into bfbbdecomp:main Oct 12, 2024
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.

2 participants