Repository navigation
PC SETTINGS in the pause menu - #113
Merged
Merged
Conversation
The in-match pause (displayDialog types 0 and 16, its page pauseLevelOverlay 0x166960 in the dialog's own loop) gets a PC SETTINGS line under RESUME, QUIT, SET VIBRATION and ADJUST REAR VIEW (under SET VIBRATION with several players), opening the same pages (Video, Cheats, Save states, QUIT GAME) drawn in the pause's style: - getCurrentMenuSelection (0x167AF8), for the pause's call (return 0x166AE4): the count one more, so the cursor reaches the new line (the wrap uses the count itself). - checkInputForPauseExit (0x167670, return 0x166D64): Cross on that line opens the pages and the pause stays (returns 0), instead of the game's hidden TWEAK action at that index closing it. - pauseLevelOverlay: after the game's menu, the line through setMenuFont (highlighted as the game's lines) and fontSpritePrintCenteredXY; while the pages are open, the pages instead (returns 0, the dialog goes on). Their input is the pausing player's pad (inputGetPlayerPad of gPlayerThatPaused, inputGetInput in uiGetInput's order), their sounds the pause's (playRTShellSound 0x2A / 0x2B / 0x2C), their fonts the pause's (setTitleFont; setMenuFont's sizes 0x12 / 0x10 and colours). A new pause starts on the game's menu. - tmb_2d.cpp: displayDialog's darkening is left out under the pages. runPage serves both: the Options screen's input (uiGetInput's flags), sounds and sub-pixel fonts, or the pause's. Checked: the 11 native suites pass; the 1P and 4P replays match main 89d5306 on every recorded field, RAM image and sound; the pinned boot and match1p checks match. A hidden window run in a 1P match: paused, Up onto PC SETTINGS, Cross to the pages, Video and Cheats pages, Triangle back to the pause menu, Start resumed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The in-match pause menu gets a PC SETTINGS line. In one player it sits under RESUME, QUIT, SET VIBRATION and ADJUST REAR VIEW; with several players, under SET VIBRATION. It opens the same pages as the Options screen (Video, Cheats, Save states, QUIT GAME), drawn in the pause's own fonts, colours and sounds and read from the pausing player's pad.
How it hooks the game, from its code (
runtime/tmb_menu.cpp):getCurrentMenuSelection(0x167AF8): for the pause's call only (return address 0x166AE4), the count is raised by one. The wrap uses the count itself, so the cursor reaches the new line.checkInputForPauseExit(0x167670, return address 0x166D64): Cross on the new line opens the pages and the pause stays open. That index holds a hidden TWEAK action in the game, which would otherwise run and close the pause.pauseLevelOverlay(0x166960, insidedisplayDialog's own loop):displayDialog's darkening is left out under the pages.Checked:
Known look: the Video page runs past the band where the paused scene shows, onto the black around it. It stays readable.
🤖 Generated with Claude Code