mirror of
https://github.com/CraftyBoss/SuperMarioOdysseyOnline.git
synced 2024-11-22 11:15:15 +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,37 +445,8 @@ bool hakoniwaSequenceHook(HakoniwaSequence* sequence) {
|
||||||
if (al::isPadTriggerLeft(-1)) { // L + Left => Activate gamemode
|
if (al::isPadTriggerLeft(-1)) { // L + Left => Activate gamemode
|
||||||
GameModeManager::instance()->toggleActive();
|
GameModeManager::instance()->toggleActive();
|
||||||
}
|
}
|
||||||
if (al::isPadTriggerRight(-1)) {
|
if (al::isPadTriggerUp(-1)) { // L + Up => Disable background music
|
||||||
if (debugMode) {
|
isDisableMusic = !isDisableMusic;
|
||||||
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
|
|
||||||
isDisableMusic = !isDisableMusic;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue