Skip to content

Review copy: let bootOptions.cfg set the boot menu order - #2

Open
grantendo wants to merge 3 commits into
pr-entriesfrom
pr-menu-order
Open

grantendo wants to merge 3 commits into
pr-entriesfrom
pr-menu-order

Conversation

@grantendo

@grantendo grantendo commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

Review copy inside the fork, for CodeRabbit and the build check. It will be closed afterwards; nothing here goes upstream from this PR.

@ lines in bootOptions.cfg set the boot menu order; with no autoboot entry the cursor starts on the first entry. Stacked on pr-entries.

Summary by CodeRabbit

  • New Features
    • Menu entries can now be arranged using @ lines in bootOptions.cfg, placing selected built-in options alongside custom entries. Built-in options not listed remain in their usual order, and unavailable options are omitted.
    • When an ordered menu has no visible autoboot selection, the cursor starts at the first entry.
  • Documentation
    • Added guidance on menu ordering and the available built-in entry names.

@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull request adds @ lines in bootOptions.cfg to order built-in and custom menu entries. It constructs and displays the menu as an ordered list, updates cursor selection and custom-title dispatch to use that list, and documents the configuration syntax.

Changes: Boot menu ordering

Layer / File(s) Summary
Parse menu-order directives
source/MenuUtils.h, source/MenuUtils.cpp, README.md
The parser accepts built-in names in @ lines, recognizes a UTF-8 BOM, and records valid built-in and custom option IDs. Unknown built-in names are skipped with a warning. The README documents the supported names and ordering behavior.
Construct the ordered menu
source/main.cpp
main builds an ordered menu from the recorded IDs. It skips duplicate IDs and includes entries based on launcher availability, installed custom titles, and remaining custom-row capacity.
Select and dispatch menu entries
source/MenuUtils.h, source/MenuUtils.cpp, source/main.cpp
The menu handler resolves option IDs to visible positions and applies the cursor fallback rules. main checks menu membership when choosing an initial selection and dispatching a custom title.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant bootOptions.cfg
  participant readCustomBootOptions
  participant main
  participant handleMenuScreen
  main->>readCustomBootOptions: Read configuration and collect menuOrder
  readCustomBootOptions->>bootOptions.cfg: Read menu-order and custom-entry lines
  readCustomBootOptions-->>main: Return custom options and menuOrder
  main->>main: Build ordered BootMenu
  main->>handleMenuScreen: Pass BootMenu and ordered flag
Loading

Suggested reviewers: maschell

Merge Risk: Minimal · up to 1c348

The change lets @ lines in bootOptions.cfg set the boot menu order, and it is documented in the README. No actionable merge-blocking risk was found in the supplied evidence.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: bootOptions.cfg now sets the boot menu order through @ lines. The raw summary and objectives confirm that the changeset adds @-line ordering of built-in entries in Men…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: bootOptions.cfg now sets the boot menu order through @ lines. The raw summary and objectives confirm that the changeset adds @-line ordering of built-in entries in MenuUtils, main.cpp, and the README. The title says "Review copy", which describes the PR's stacked review status and not the code change, but the core subject is accurate and specific.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 54f0fc33-ea1a-44fd-83b7-56a1c333cd50
Commits

Reviewing files that changed from the base of the PR and between 548c986 and 1c3487e.

Files selected for processing: 4

  • README.md
  • source/MenuUtils.cpp
  • source/MenuUtils.h
  • source/main.cpp

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

An "@" line in bootOptions.cfg names a built-in entry by its autoboot.cfg
name (@wiiu_menu, @homebrew_launcher, @vwii_system_menu,
@vwii_homebrew_channel). When the file has any, entries appear in the
order of its lines; built-in entries it doesn't list follow in the usual
order, so none can disappear, and unavailable ones stay hidden. Without
"@" lines the menu looks as before. Names match in any case, an unknown
one is skipped with a log message, and a byte order mark that some
editors write at the start of the file is ignored.

The menu is now an ordered list instead of a map keyed by option id,
which also fixes the autoboot highlight and the starting cursor: they
were found by matching ids to positions, which skipped the Wii U Menu
(id 0) as the autoboot option. With no autoboot option the cursor starts
on the Wii U Menu, as before.
With "@" lines in bootOptions.cfg and no autoboot entry, the menu's cursor
starts on the first entry instead of the Wii U Menu, so the entry put first is
also the one A starts. Without "@" lines nothing changes.
A custom entry's name may start with @ ("@games,0x..."), which the
parser took for a built-in entry and skipped. Only lines without a
comma name built-in entries now.
@grantendo

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@grantendo

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

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