[main menu][pause menu] replace the action guide with the SMOO Mod Menu

Cherry picked this aspect from the original commit and did the romfs change for all languages (not only for `USen`).

a9b2c87aa0

(cherry picked from commit a9b2c87aa0)

Co-authored-by: Robin C. Ladiges <rcl.git@blackpinguin.de>
This commit is contained in:
Amethyst-szs 2022-10-26 20:40:21 -07:00 committed by Robin C. Ladiges
parent ad79fe1732
commit e15e8f60e9
No known key found for this signature in database
GPG Key ID: B494D3DF92661B99
16 changed files with 7 additions and 9 deletions

View File

@ -99,13 +99,14 @@ B59E28 B seadPrintHook // sead::system::print
// Pause Menu Changes
4EAEC4 B overrideNerveHook // makes any button on pause menu run a specific nerve
// 4EAEC4 B overrideNerveHook // makes any button on pause menu run a specific nerve
4EA104 MOV W2, #5 // update state count to account for new custom state
4EA1F0 BL initNerveStateHook // inits options nerve state and server config state
4EA174 MOV X0, X20 // moves StageSceneStatePauseMenu to first arg
4EA17C NOP // prevents first new of StageSceneStateOption
4EA1A8 BL initStateHook // inits StageSceneStateOption and StageSceneStateServerConfig
4EA1C0 NOP // prevents mStateOption ptr from being overriden
4EAFA4 B overrideHelpFadeNerve
// Gravity hooks

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -78,13 +78,10 @@ bool registerShineToList(Shine* shineActor) {
return al::isAlive(shineActor);
}
void overrideNerveHook(StageSceneStatePauseMenu* thisPtr, al::Nerve* nrvSet) {
if (al::isPadHoldZL(-1)) {
al::setNerve(thisPtr, &nrvStageSceneStatePauseMenuServerConfig);
} else {
al::setNerve(thisPtr, nrvSet);
}
void overrideHelpFadeNerve(StageSceneStatePauseMenu* thisPtr) {
// Set label in menu inside LocalizedData/${lang}/MessageData/LayoutMessage.szs/Menu.msbt/Menu_Help
thisPtr->exeServerConfig();
al::setNerve(thisPtr, &nrvStageSceneStatePauseMenuServerConfig);
}
StageSceneStateServerConfig *sceneStateServerConfig = nullptr;

View File

@ -37,7 +37,7 @@ StageSceneStateServerConfig::StageSceneStateServerConfig(const char *name, al::S
mMainOptions = new SimpleLayoutMenu("ServerConfigMenu", "OptionSelect", initInfo, 0, false);
mMainOptionsList = new CommonVerticalList(mMainOptions, initInfo, true);
al::setPaneString(mMainOptions, "TxtOption", u"Server Configuration", 0);
al::setPaneString(mMainOptions, "TxtOption", u"SMOO Mod Menu", 0);
mMainOptionsList->unkInt1 = 1;