You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Launcher: console filter and quick console navigation - #134
Follow-up to #133: the console banner in the launcher's header is now interactive.
Jump between consoles: Left / Right on the game list go to the previous / next console's first game.
Filter to one console: tapping the console in the header, or pressing X, opens a console picker. It lists "All consoles" plus every console on the card with its number of games. Up / Down choose, A picks, and B or a tap beside the list closes it.
While filtered: the list shows only that console's games, the console in the header is outlined, and Left / Right move the filter to the next console. Launching a game the filter hides (for example with emulink launch) shows all consoles again. The filter stays across games but not across a reboot.
USB link (protocol 3):
CONSOLE_FILTER (emulink filter <console|all>), with the current filter in status;
emulink screenshot with no game running now returns the launcher's screen, drawn with lv_snapshot into a copy. CONFIG_LV_USE_SNAPSHOT is now enabled.
Graphics: I checked the launcher with every console filtered (screenshots below) and fixed what I found:
A short filtered list wrapped round and showed its games twice, so the roller no longer wraps while filtered.
The Game Gear badge was nearly invisible on the dark header; its color is lighter now.
No console has SD card art (boxart/consoles/<key>.jpg) on this card, so these are all the firmware's badges.
Tested on the box: picker by X / Down / A, Left / Right stepping, filters for all 9 consoles, a launch that lifts the filter, and the filter kept across a game.
Screenshots (emulink screenshot of the launcher)
All consoles
Console picker (X)
Picked: Game Boy only
Right: on to the next console
The last one was taken with all consoles showing: Right jumped from a Game Boy game to the first Game Boy Color game.
Each console filtered (emulink filter <key>; the badges are the firmware's own, since no console art is on the card):
- Left / right on the game list jump to the previous / next console.
- The console in the header opens a console picker (tap it, or X): all
consoles, or only one console's games. The console is outlined while
the list is filtered, and left / right then move the filter. Launching
a game the filter hides lifts it.
- USB link (protocol 3): CONSOLE_FILTER (emulink filter <console|all>),
the filter in STATUS, and SCREENSHOT of the launcher's screen when no
game runs (lv_snapshot, now enabled).
- Graphics: a filtered roller does not wrap (a short list showed twice),
and the Game Gear badge is lighter (it vanished on the dark header).
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SFCMzomCZ5wRHJN4sxwkvY
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Programmatic launches can leave keypad input controlling games behind the visible console picker, and filtered game lists still wrap upward but not downward.
FLASH uses app .bin size or json2 flash sum. RAM sums DRAM+IRAM via idf_size. Percentages shown when totals are available. DRAM/IRAM usage does not include memory used by the heap allocator at runtime. This report was generated by esp-idf-size-delta.
esp_tinyusb 3.0.1 (TinyUSB 0.21.0~6, the DWC2 SETUP-DMA erratum
workaround) corrupts the PSRAM heap on esp-box-emu while a Genesis game
runs: the link task's next allocation hits a tlsf assert or an MMU entry
fault. With 3.0.0 the same firmware is fine (checked on the box with the
same commit built both ways). A fresh build resolves '>=3.0.0' to 3.0.1,
so CI would have shipped it.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SFCMzomCZ5wRHJN4sxwkvY
The heap corruption seen with Sonic 2 on the box turned out to be
intermittent: the same builds that failed also pass repeated trials, so
the runs that blamed esp_tinyusb 3.0.1 were not evidence of a cause. The
corruption is tracked separately; no pin until it is understood.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SFCMzomCZ5wRHJN4sxwkvY
…picker
- With a console filter on, Up from the first game lands on the header,
which now moves on to that first game (the filtered roller stops at both
ends, as Down does on the last game) instead of wrapping to the last.
- Selecting a game or setting the filter from the link closes the console
picker first: a game started from there left the picker over the list
with the list's keypad group restored after the game.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SFCMzomCZ5wRHJN4sxwkvY
The reason will be displayed to describe this comment to others. Learn more.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
… one pass
- CONSOLE_FILTER with an empty payload now returns {filter, consoles}
without touching the launcher ("all" clears the filter, as before), and
emulink filter with no console sends that query instead of re-setting
the current filter (which rebuilt the list and could undo a newer pick).
- The picker counts each console's games in one pass over the grouped list.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SFCMzomCZ5wRHJN4sxwkvY
Prevent console filter changes while a launch is pending
main/remote_control.hpp:492
CONSOLE_FILTER can replace the selected ROM after a launch is accepted but before main.cpp:185 reads it, causing a different game to start. Run mutations through on_main() and reject them while a launch is pending (ready_to_play() with no current cart). Hold the shared GUI mutex across that check and mutation to keep controller input from racing with it.
Refresh the open console picker after metadata reload
components/gui/src/gui.cpp:108
Reloading metadata leaves an open console picker with outdated choices and counts. Removed consoles remain selectable even though set_console_filter() rejects them, and newly added consoles are missing. Close the picker before rebuilding the roller so reopening it reflects the current catalog.
…he picker
- CONSOLE_FILTER (set) runs on the main loop under the GUI lock, like
LAUNCH, and is refused while a launch the loop has taken has not
started its cart yet: the new filter could change the game it starts.
- Re-reading metadata.csv closes an open console picker, whose consoles
and counts are the old list's.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SFCMzomCZ5wRHJN4sxwkvY
Copilot round 2 (review of 3f9a022) raised two issues in its summary, both fixed in 2968e88:
Console filter changes while a launch is pending:CONSOLE_FILTER (set) now runs on the main loop under the GUI lock, like LAUNCH, and is refused ("a game is starting") while the loop has taken a launch whose cart hasn't started yet. A query (empty payload) still answers directly, since it changes nothing.
Stale picker after a metadata reload:update_rom_list() closes an open console picker before rebuilding, so its consoles and counts can't go stale.
The two "open issues" it lists are the first-round threads, fixed in c303823 (see the replies there).
main's tree is feat/console-filter's tip (8a0cd6c), already merged here, so
this branch's tree is kept as is.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SFCMzomCZ5wRHJN4sxwkvY
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
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.
Follow-up to #133: the console banner in the launcher's header is now interactive.
emulink launch) shows all consoles again. The filter stays across games but not across a reboot.CONSOLE_FILTER(emulink filter <console|all>), with the current filter instatus;emulink screenshotwith no game running now returns the launcher's screen, drawn withlv_snapshotinto a copy.CONFIG_LV_USE_SNAPSHOTis now enabled.Graphics: I checked the launcher with every console filtered (screenshots below) and fixed what I found:
No console has SD card art (
boxart/consoles/<key>.jpg) on this card, so these are all the firmware's badges.Tested on the box: picker by X / Down / A, Left / Right stepping, filters for all 9 consoles, a launch that lifts the filter, and the filter kept across a game.
Screenshots (
emulink screenshotof the launcher)The last one was taken with all consoles showing: Right jumped from a Game Boy game to the first Game Boy Color game.
Each console filtered (
emulink filter <key>; the badges are the firmware's own, since no console art is on the card):🤖 Generated with Claude Code
https://claude.ai/code/session_01SFCMzomCZ5wRHJN4sxwkvY