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_SPOT04:
case SCENE_SPOT15:
CVarSetInteger("gDirtPathFix", CVarGetInteger("gSceneSpecificDirtPathFix", ZFIGHT_FIX_DISABLED));
CVarSetInteger("gZFightingMode", CVarGetInteger("gSceneSpecificDirtPathFix", ZFIGHT_FIX_DISABLED));
return;
default:
CVarClear("gDirtPathFix");
CVarClear("gZFightingMode");
}
}

View File

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

View File

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