Skip to content

app: requestSettings, the settings window opened on a tab from any thread - #162

Closed
boubou666 wants to merge 1 commit into
masterfrom
amp/settings-request
Closed

boubou666 wants to merge 1 commit into
masterfrom
amp/settings-request

Conversation

@boubou666

Copy link
Copy Markdown
Contributor

What

Adds bozo::app::requestSettings(tab) to bozo/app/panel.h.

  • Any thread can ask for the settings window to open on a named tab.
  • The panel takes the request at its next draw, on the window's thread.
  • It opens as F2 does: focused, so a gamepad steers it, and the tab is selected the same way PS2X_SETTINGS_OPEN does.

Why

Amplitude adds a PC SETTINGS entry to the game's own Options and pause menus. The port sees that entry selected on the game's thread, and opens the settings on its Amplitude tab: video options, cheats, save states and quit. The panel's toggleSettings runs on the window's thread only.

Testing

In Amplitude's window build, selecting PC SETTINGS in the Options menu and in the pause menu makes the request. I haven't seen the window open on screen: captures are taken before the overlay is drawn.

Nothing changes for a port that doesn't call it.

🤖 Generated with Claude Code

…read

A port whose game's own menus lead to the settings (Amplitude's PC
SETTINGS entry in its Options and pause menus) asks from the game's
thread; the panel takes the request at its next draw, as F2 opens it,
on the tab named (PS2X_SETTINGS_OPEN's selection).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@boubou666

Copy link
Copy Markdown
Contributor Author

Not needed: Amplitude's PC SETTINGS now opens pages the game draws in its own menus instead of the settings window, so the port no longer calls requestSettings.

@boubou666 boubou666 closed this Nov 27, 2026
@boubou666
boubou666 deleted the amp/settings-request branch November 27, 2026 11: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