Rename gDirtPathFix to gZFightingMode (#2959)

* Rename gDirtPathFix to gZFightingMode

* Add config migration
This commit is contained in:
Garrett Cox 2023-06-12 19:40:29 -05:00 committed by GitHub
parent a6ecb77599
commit 90d45d4397
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 3 deletions

View File

@ -537,10 +537,10 @@ void UpdateDirtPathFixState(int32_t sceneNum) {
case SCENE_SPOT00: case SCENE_SPOT00:
case SCENE_SPOT04: case SCENE_SPOT04:
case SCENE_SPOT15: case SCENE_SPOT15:
CVarSetInteger("gDirtPathFix", CVarGetInteger("gSceneSpecificDirtPathFix", ZFIGHT_FIX_DISABLED)); CVarSetInteger("gZFightingMode", CVarGetInteger("gSceneSpecificDirtPathFix", ZFIGHT_FIX_DISABLED));
return; return;
default: default:
CVarClear("gDirtPathFix"); CVarClear("gZFightingMode");
} }
} }

View File

@ -206,7 +206,8 @@ const std::vector<const char*> enhancementsCvars = {
"gDrawLineupTick", "gDrawLineupTick",
"gQuickBongoKill", "gQuickBongoKill",
"gFPSGauntlets", "gFPSGauntlets",
"gDirtPathFix", "gSceneSpecificDirtPathFix",
"gZFightingMode",
"gAuthenticLogo", "gAuthenticLogo",
"gPauseLiveLinkRotationSpeed", "gPauseLiveLinkRotationSpeed",
"gBowReticle", "gBowReticle",

View File

@ -49,5 +49,9 @@ namespace LUS {
if (conf->GetString("Game.Patches Archive", "") == "") { if (conf->GetString("Game.Patches Archive", "") == "") {
conf->Erase("Game.Patches Archive"); conf->Erase("Game.Patches Archive");
} }
if (CVarGetInteger("gDirtPathFix", 0) != 0) {
CVarSetInteger("gZFightingMode", CVarGetInteger("gDirtPathFix", 0));
CVarClear("gDirtPathFix");
}
} }
} }