Skip to content

Comments

[N64] Fix pak menu radio selection#2307

Merged
LukeUsher merged 1 commit intoares-emulator:masterfrom
remutro:n64-pak-menu-fix
Dec 9, 2025
Merged

[N64] Fix pak menu radio selection#2307
LukeUsher merged 1 commit intoares-emulator:masterfrom
remutro:n64-pak-menu-fix

Conversation

@remutro
Copy link
Contributor

@remutro remutro commented Dec 8, 2025

This became a problem when changes were made to introduce support for the biosensor pak item, which when chosen adds an additional BPM menu item option to the parent menu, and removes it when a different pak (or nothing) is selected. Previously menu selection would be resolved at the end of the method, but this had to be removed or the removal of the BPM menu wouldn't work correctly.

The underlying issue was the way in which we created menu radio items in the pak menu. By creating them, setting them up, and then adding them to the group one by one, each created menu radio item had its default checked state set to true as they were currently not part of a group. This led to every item in the pak menu having their checked state set to true, which broke proper radio selection. By creating all menu items at once and adding them all into the appropriate group, the logic that follows to determine which one should be checked will now properly enable the correct menu item while disabling all other items in the group.

@LukeUsher LukeUsher merged commit ec37cac into ares-emulator:master Dec 9, 2025
14 checks passed
@remutro remutro deleted the n64-pak-menu-fix branch December 9, 2025 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants