Skip to content

split menumain - #193

Merged
dargor123 merged 2 commits into
roengstrom:mainfrom
dargor123:split-menumain
Oct 29, 2026
Merged

dargor123 merged 2 commits into
roengstrom:mainfrom
dargor123:split-menumain

Conversation

@dargor123

Copy link
Copy Markdown
Collaborator
  • splits into 3 TUs because of unaligned jumptables:
    • menumain - begins at func_801EF800
    • menumain2 - begins at func_801F0274
    • menumain3 - begins at func_801F776C
  • updated menu.h to reflect only menumain symbols used by external overlays
  • updated all other submenu overlays to import menu.h instead of menumain.h (the last one is only imported by menumain.c and menumain2.c)

- splits into 3 TUs because of unaligned jumptables:
    - menumain - begins at `func_801EF800`
    - menumain2 - begins at `func_801F0274`
    - menumain3 - begins at `func_801F776C`
- updated `menu.h` to reflect only menumain symbols used by external overlays
- updated all other submenu overlays to import `menu.h` instead of `menumain.h` (the last one is only imported by `menumain.c` and `menumain2.c`)

@roengstrom roengstrom left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but maybe we can move the prototypes to the correct header files?

Comment thread include/menu.h Outdated
Comment thread include/menu.h Outdated
@dargor123
dargor123 requested a review from roengstrom October 29, 2026 22:01

@roengstrom roengstrom left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIce!

@dargor123
dargor123 merged commit 1e66cde into roengstrom:main Oct 29, 2026
1 check failed
@dargor123
dargor123 deleted the split-menumain branch October 29, 2026 22:17
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.

3 participants