Skip to content

Add game library with folder scanning and filtered list UI#556

Draft
Copilot wants to merge 5 commits intodevfrom
copilot/add-game-list-feature
Draft

Add game library with folder scanning and filtered list UI#556
Copilot wants to merge 5 commits intodevfrom
copilot/add-game-list-feature

Conversation

Copy link

Copilot AI commented Feb 11, 2026

Implements a game library that scans configured folders for ROMs and displays them in a searchable, sortable list in the Load Game overlay.

Implementation

Data structures:

  • se_game_library_entry_t - stores path, name, and system type (GB/GBC/GBA/NDS)
  • se_game_library_state_t - tracks 2048 entries max with sorted indices
  • Extended se_search_paths_t using existing padding slots for 3 library paths
  • Added game_library_recursive_scan flag to persistent_settings_t

Scanning:

  • Uses tinydir for directory traversal with optional recursion
  • Detects system type by file extension (.gb, .gbc, .gba, .nds)
  • ZIP files excluded (require extraction for type detection)
  • Auto-rescans on path changes, manual trigger available

UI additions:

  • Settings panel: 3 configurable paths, recursive scan toggle, manual rescan
  • Load Game overlay: filtered/sorted game list with system badges
  • Reuses existing search buffer and UI components
  • Alphabetical sort (asc/desc)

Code quality:

  • Bounds checking in comparators
  • Buffer sizes use sizeof() and named constants
  • Sort validation in sort function, not per-frame
  • ~240 LOC in src/main.c only, no ABI changes
Original prompt

This section details on the original issue you should resolve

<issue_title>Feature Request: Game List</issue_title>
<issue_description>Would it be possible to implement a game list where you can add folder(s) that the program scans for games and automatically adds them to a list shown when the emulator is launched? I feel like one that's similar to Dolphin's would work well with the overall style of the program. Some extras like recursive folder searching, being able to exit back to the game list and (maybe?) a cover downloading framework would go well with it, but those are just suggestions.</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 4 commits February 11, 2026 04:03
Co-authored-by: skylersaleh <7118296+skylersaleh@users.noreply.github.com>
Co-authored-by: skylersaleh <7118296+skylersaleh@users.noreply.github.com>
Co-authored-by: skylersaleh <7118296+skylersaleh@users.noreply.github.com>
…nction

Co-authored-by: skylersaleh <7118296+skylersaleh@users.noreply.github.com>
Copilot AI changed the title [WIP] Add game list feature with folder scanning Add game library with folder scanning and filtered list UI Feb 11, 2026
Copilot AI requested a review from skylersaleh February 11, 2026 04:13
@github-actions
Copy link

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.

Feature Request: Game List

2 participants