mirror of
https://github.com/CraftyBoss/SuperMarioOdysseyOnline.git
synced 2024-11-25 20:55:17 +00:00
[debug menu] change: toggle BGM also when the debug menu is open
Also: - remove unused `L + Right` and `L + Up` controls for debug puppets
This commit is contained in:
parent
56350afa04
commit
7cd46d2f29
1 changed files with 2 additions and 31 deletions
|
@ -445,39 +445,10 @@ bool hakoniwaSequenceHook(HakoniwaSequence* sequence) {
|
|||
if (al::isPadTriggerLeft(-1)) { // L + Left => Activate gamemode
|
||||
GameModeManager::instance()->toggleActive();
|
||||
}
|
||||
if (al::isPadTriggerRight(-1)) {
|
||||
if (debugMode) {
|
||||
PuppetInfo* debugPuppet = Client::getDebugPuppetInfo();
|
||||
|
||||
if (debugPuppet) {
|
||||
debugPuppet->playerPos = al::getTrans(playerBase);
|
||||
al::calcQuat(&debugPuppet->playerRot, playerBase);
|
||||
|
||||
PlayerHackKeeper* hackKeeper = playerBase->getPlayerHackKeeper();
|
||||
|
||||
if (hackKeeper) {
|
||||
const char* hackName = hackKeeper->getCurrentHackName();
|
||||
debugPuppet->isCaptured = hackName != nullptr;
|
||||
if (debugPuppet->isCaptured) {
|
||||
strcpy(debugPuppet->curHack, hackName);
|
||||
} else {
|
||||
strcpy(debugPuppet->curHack, "");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (al::isPadTriggerUp(-1)) {
|
||||
if (debugMode) {
|
||||
PuppetActor* debugPuppet = Client::getDebugPuppet();
|
||||
if (debugPuppet) {
|
||||
debugPuppet->emitJoinEffect();
|
||||
}
|
||||
} else { // L + Up => Disable background music
|
||||
if (al::isPadTriggerUp(-1)) { // L + Up => Disable background music
|
||||
isDisableMusic = !isDisableMusic;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isDisableMusic) {
|
||||
if (al::isPlayingBgm(stageScene)) {
|
||||
|
|
Loading…
Reference in a new issue