Skip to content

RPSysHomeMenuMgr WIP for real - #154

Merged
kiwi515 merged 17 commits into
doldecomp:masterfrom
Tanline666:home-menu
Sep 4, 2026
Merged

RPSysHomeMenuMgr WIP for real#154
kiwi515 merged 17 commits into
doldecomp:masterfrom
Tanline666:home-menu

Conversation

@Tanline666

Copy link
Copy Markdown
Contributor

The following description was from my original request:

Code is 61% matched, with several functions at 100%. update() requires review as uncommenting the commented code causes the function to experience a 0% match (compared to 77%). clearMenu() is unfinished, while DestroyInstance() may not actually exist.

@decomp-dev

decomp-dev Bot commented Sep 3, 2026

Copy link
Copy Markdown

Report for RSPE01_01 (4c08445 - 0d67c24)

📈 Matched code: 34.18% (+0.04%, +1292 bytes)
📈 Matched data: 37.57% (+0.02%, +304 bytes)

✅ 10 new matches
Unit Item Bytes Before After
main/Pack/RPKernel/RPSysHomeMenuMgr RPSysHomeMenuMgr::LoadResource() +548 0.00% 100.00%
main/Pack/RPKernel/RPSysHomeMenuMgr .rodata +304 0.00% 100.00%
main/Pack/RPKernel/RPSysHomeMenuMgr RPSysHomeMenuMgr::updateOutside() +300 0.00% 100.00%
main/Pack/RPKernel/RPSysHomeMenuMgr RPSysHomeMenuMgr::init() +104 0.00% 100.00%
main/Pack/RPKernel/RPSysHomeMenuMgr RPSysHomeMenuMgr::CreateInstance(EGG::Heap*) +96 0.00% 100.00%
main/Pack/RPKernel/RPSysHomeMenuMgr RPSysHomeMenuMgr::startBlackOut() +88 0.00% 100.00%
main/Pack/RPKernel/RPSysHomeMenuMgr RPSysHomeMenuMgr::~RPSysHomeMenuMgr() +64 0.00% 100.00%
main/Pack/RPKernel/RPSysHomeMenuMgr RPSysHomeMenuMgr::draw() +44 0.00% 100.00%
main/Pack/RPKernel/RPSysHomeMenuMgr RPSysHomeMenuMgr::beginDrawScreen() +36 0.00% 100.00%
main/Pack/RPKernel/RPSysSystem RPSysSystem::startLoadCount() +12 0.00% 100.00%
📈 6 improvements in unmatched items
Unit Item Bytes Before After
main/Pack/RPKernel/RPSysHomeMenuMgr RPSysHomeMenuMgr::update() +708 0.00% 77.73%
main/Pack/RPKernel/RPSysHomeMenuMgr RPSysHomeMenuMgr::clearMenu() +194 0.00% 66.70%
main/Pack/RPKernel/RPSysHomeMenuMgr .sdata2 +21 0.00% 44.44%
main/Pack/RPKernel/RPSysHomeMenuMgr .data +14 0.00% 88.57%
main/Pack/RPKernel/RPSysHomeMenuMgr .sdata +6 0.00% 75.00%
main/Pack/RPKernel/RPSysHomeMenuMgr .sbss +5 0.00% 66.67%

Comment thread src/Pack/RPKernel/RPSysHomeMenuMgr.cpp Outdated
->GetFileFromArchive(staComArc, "/HomeMenu/homeBtnIcon.bti");

switch (mProjectLocal->getLanguage()) {
case (RPSysProjectLocal::EArea_France): {

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.

we just write the switch cases without parentheses:

case XYZ: {
    // . . .
}

. . .

Comment thread src/Pack/RPKernel/RPSysHomeMenuMgr.cpp Outdated
}
}
RPSysScene* sceneRP = RP_GET_INSTANCE(RPSysSceneMgr)->getCurrentSceneRP();
//! This function is stubbed out in rev 1

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.

the pauseCallback implementation in RPSysScene is empty so that derived classes can override it. although i dont think anything in wii sports overrides that method

Comment thread include/Pack/RPAudio/RPSndMoveParam.h Outdated
private:
//! Sound handle
nw4r::snd::SoundHandle& mrHandle; // at 0x28
nw4r::snd::SoundHandle& mrHandle; // at 0x24

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.

i think u brought these changes back by mistake :p

bool setupArchive(const void* pBinary);

private:
static RPSndHomeMenuArcMgr* spInstance;

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.

i dont think this is a singleton instance. it looks like RPSysHomeMenuMgr just owns this as a static member. could u make the instance a static member of RPSysHomeMenuMgr, and remove the instance() method here?

maybe something like static RPSndHomeMenuArcMgr* spHomeMenuArcMgr;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Will do. I was getting that feeling, but I wasn't sure

@kiwi515
kiwi515 merged commit 8a23824 into doldecomp:master Sep 4, 2026
1 check passed
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