Skip to content

SelectMenu matching and naming. - #136

Open
CaptainProton42 wants to merge 1 commit into
doldecomp:mainfrom
CaptainProton42:SelectMenu
Open

SelectMenu matching and naming.#136
CaptainProton42 wants to merge 1 commit into
doldecomp:mainfrom
CaptainProton42:SelectMenu

Conversation

@CaptainProton42

Copy link
Copy Markdown
Contributor

There are still tons of issues with this but I think I've stared at this for long enough and am reaching the end of my abilities.

I've done the naming mostly by running the game with Dolphin Memory Engine attached.

I've also moved TSelectShineManager to its own file to mirror the structure of the TUs.

@decomp-dev

decomp-dev Bot commented Aug 9, 2026

Copy link
Copy Markdown

Report for GMSJ01 (5a8c71e - c2a7034)

📈 Matched code: 35.35% (+0.04%, +1476 bytes)
📈 Matched data: 48.64% (+0.03%, +188 bytes)

✅ 11 new matches
Unit Item Bytes Before After
mario/GC2D/SelectMenu TSelectMenu::TSelectMenu(const char*) +400 0.00% 100.00%
mario/GC2D/SelectMenu TSelectGrad::setStageColor(unsigned char) +304 0.00% 100.00%
mario/GC2D/SelectMenu .sdata2 +184 0.00% 100.00%
mario/GC2D/SelectMenu TSelectGrad::TSelectGrad(const char*) +172 0.00% 100.00%
mario/GC2D/SelectMenu TSelectGrad::~TSelectGrad() +116 0.00% 100.00%
mario/GC2D/SelectMenu TSelectMenu::~TSelectMenu() +116 0.00% 100.00%
mario/GC2D/SelectMenu TSelectMenu::startMove() +96 0.00% 100.00%
mario/GC2D/SelectMenu SMS_getShineID(unsigned long, unsigned long, bool) +92 0.00% 100.00%
mario/GC2D/SelectMenu TSelectMenu::getNextIndex() +92 0.00% 100.00%
mario/GC2D/SelectMenu TSelectMenu::getPrevIndex() +88 0.00% 100.00%
mario/GC2D/SelectMenu .ctors +4 0.00% 100.00%
📈 8 improvements in unmatched items
Unit Item Bytes Before After
mario/GC2D/SelectMenu TSelectMenu::perform(unsigned long, JDrama::TGraphics*) +5605 0.00% 91.05%
mario/GC2D/SelectMenu TSelectMenu::initData(unsigned char, JKRArchive*, TSelectShineManager*, TSelectDir*) +3743 0.00% 92.01%
mario/GC2D/SelectMenu TSelectGrad::perform(unsigned long, JDrama::TGraphics*) +907 0.00% 94.91%
mario/GC2D/SelectMenu TSelectMenu::startOpenWindow() +587 0.00% 99.93%
mario/GC2D/SelectMenu .data +499 0.00% 84.42%
mario/GC2D/SelectMenu .rodata +291 0.00% 79.12%
mario/GC2D/SelectMenu __sinit_SelectMenu_cpp +74 0.00% 9.73%
mario/GC2D/SelectMenu .bss +23 0.00% 12.50%

#ifndef GC2D_SELECT_MENU_HPP
#define GC2D_SELECT_MENU_HPP
#ifndef GC2D_SELECT_MENU_2_HPP
#define GC2D_SELECT_MENU_2_HPP

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why 2 when there's no 2 in the file name?

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.

2 participants