Update cvar clear lists and add cheatCvars clear list(not currently used) (#2869)

This commit is contained in:
Garrett Cox 2023-05-28 17:42:34 -05:00 committed by GitHub
parent 0c7e80a190
commit 3ab547c69d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,6 +44,8 @@ typedef struct PresetEntry {
{ cvar, PRESET_ENTRY_TYPE_STRING, value }
void DrawPresetSelector(PresetType presetType);
void clearCvars(std::vector<const char*> cvarsToClear);
void applyPreset(std::vector<PresetEntry> entries);
// TODO: Ideally everything below this point will come from one/many JSON files
@ -201,6 +203,61 @@ const std::vector<const char*> enhancementsCvars = {
"gLowResMode",
"gDrawLineupTick",
"gQuickBongoKill",
"gDirtPathFix",
"gAuthenticLogo",
"gPauseLiveLinkRotationSpeed",
"gBowReticle",
"gFixTexturesOOB",
"gIvanCoopModeEnabled",
};
const std::vector<const char*> cheatCvars = {
"gConsoleEnabled",
"gActorViewerEnabled",
"gCollisionViewerEnabled",
"gDLViewerEnabled",
"gSaveEditorEnabled",
"gEnableWalkModify",
"gWalkSpeedToggle",
"gWalkModifierOne",
"gWalkModifierTwo",
"gGoronPot",
"gDampeWin",
"gCustomizeShootingGallery",
"gCustomizeBombchuBowling",
"gCustomizeFishing",
"gInfiniteAmmo",
"gInfiniteEpona",
"gInfiniteHealth",
"gInfiniteMagic",
"gInfiniteMoney",
"gInfiniteNayru",
"gNoClip",
"gClimbEverything",
"gHookshotEverything",
"gCheatHookshotReachMultiplier",
"gMoonJumpOnL",
"gSuperTunic",
"gEzISG",
"gTimelessEquipment",
"gCheatEasyPauseBufferEnabled",
"gCheatEasyInputBufferingEnabled",
"gNoRestrictItems",
"gFreezeTime",
"gPrevTime",
"gDropsDontDie",
"gFireproofDekuShield",
"gShieldTwoHanded",
"gTimeSync",
"gDebugEnabled",
"gSkulltulaDebugEnabled",
"gSkipLogoTitle",
"gSaveFileID",
"gEnableBetaQuest",
"gBetterDebugWarpScreen",
"gSwitchAge",
"gSwitchTimeline",
"gNoRedeadFreeze",
};
const std::vector<const char*> randomizerCvars = {
@ -322,6 +379,10 @@ const std::vector<const char*> randomizerCvars = {
"gRandomizeTokenCount",
"gRandomizeWarpSongText",
"gRandomizeZorasFountain",
"gRandomizeShuffle100GSReward",
"gRandomizeGregHint",
"gRandoManualSeedEntry",
"gRandomizerSettingsEnabled",
};
const std::vector<PresetEntry> vanillaPlusPresetEntries = {