Skip to content

PC SETTINGS in the pause menu - #113

Merged
boubou666 merged 1 commit into
mainfrom
claude/pause-pc-settings
Nov 27, 2026
Merged

boubou666 merged 1 commit into
mainfrom
claude/pause-pc-settings

Conversation

@boubou666

Copy link
Copy Markdown
Collaborator

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, inside displayDialog's own loop):
    • It draws the line after the game's menu, highlighted the way the game highlights its lines.
    • While the pages are open, it draws them instead and keeps the dialog open.
    • A new pause starts on the game's menu.
  • Dimming: displayDialog's darkening is left out under the pages.

Checked:

  • All 11 native suites pass.
  • The 1P and 4P replays match main 89d5306 on every recorded field, the RAM image and the 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, the Video and Cheats pages, Triangle back to the pause menu, and Start resumed the match.

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

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>
@boubou666
boubou666 merged commit ad37192 into main Nov 27, 2026
8 checks passed
@boubou666
boubou666 deleted the claude/pause-pc-settings branch November 27, 2026 00:16
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.

1 participant