summaryrefslogtreecommitdiff
path: root/mm/2s2h/Enhancements/Graphics/DisableGrottoRotation.cpp
blob: faab12b7056f45320f203d93875979f069ea5d95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <libultraship/bridge/consolevariablebridge.h>
#include "2s2h/GameInteractor/GameInteractor.h"
#include "2s2h/ShipInit.hpp"

#define CVAR_NAME "gEnhancements.Mods.DisableGrottoRotation"
#define CVAR CVarGetInteger(CVAR_NAME, 0)

void RegisterDisableGrottoRotation() {
    COND_VB_SHOULD(VB_ROTATE_GROTTO_ENTRANCE, CVAR, { *should = false; });
}

static RegisterShipInitFunc initFunc(RegisterDisableGrottoRotation, { CVAR_NAME });