RPSysHomeMenuMgr WIP for real - #154
Conversation
Report for RSPE01_01 (4c08445 - 0d67c24)📈 Matched code: 34.18% (+0.04%, +1292 bytes) ✅ 10 new matches
📈 6 improvements in unmatched items
|
| ->GetFileFromArchive(staComArc, "/HomeMenu/homeBtnIcon.bti"); | ||
|
|
||
| switch (mProjectLocal->getLanguage()) { | ||
| case (RPSysProjectLocal::EArea_France): { |
There was a problem hiding this comment.
we just write the switch cases without parentheses:
case XYZ: {
// . . .
}
. . .| } | ||
| } | ||
| RPSysScene* sceneRP = RP_GET_INSTANCE(RPSysSceneMgr)->getCurrentSceneRP(); | ||
| //! This function is stubbed out in rev 1 |
There was a problem hiding this comment.
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
| private: | ||
| //! Sound handle | ||
| nw4r::snd::SoundHandle& mrHandle; // at 0x28 | ||
| nw4r::snd::SoundHandle& mrHandle; // at 0x24 |
There was a problem hiding this comment.
i think u brought these changes back by mistake :p
| bool setupArchive(const void* pBinary); | ||
|
|
||
| private: | ||
| static RPSndHomeMenuArcMgr* spInstance; |
There was a problem hiding this comment.
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;
There was a problem hiding this comment.
Will do. I was getting that feeling, but I wasn't sure
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, whileDestroyInstance()may not actually exist.