* Cheat: Disable Sandstorm Can also be considered an A11y feature, tho it'll always be hard with the muted colors, even if we added option to reduce fog * extern C?
17 lines
550 B
C++
17 lines
550 B
C++
#include "soh/Enhancements/game-interactor/GameInteractor.h"
|
|
#include "soh/ShipInit.hpp"
|
|
|
|
extern "C" PlayState* gPlayState;
|
|
|
|
void DisableSandstormAfterTransition(int16_t sceneNum) {
|
|
if (sceneNum == SCENE_HAUNTED_WASTELAND) {
|
|
gPlayState->envCtx.sandstormState = SANDSTORM_OFF;
|
|
}
|
|
}
|
|
|
|
void RegisterDisableSandstorm() {
|
|
COND_HOOK(OnTransitionEnd, CVarGetInteger(CVAR_CHEAT("DisableSandstorm"), 0), DisableSandstormAfterTransition);
|
|
}
|
|
|
|
static RegisterShipInitFunc initFunc(RegisterDisableSandstorm, { CVAR_CHEAT("DisableSandstorm") });
|