Make ConfigUpdaterV2 use CVarClearBlock instead of manually scanning. (#4435)

This commit is contained in:
Malkierian 2024-10-17 18:41:38 -07:00 committed by GitHub
parent dba74f8805
commit 5a23da4ce0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,9 +66,7 @@ namespace SOH {
} }
void ConfigVersion2Updater::Update(Ship::Config* conf) { void ConfigVersion2Updater::Update(Ship::Config* conf) {
for (auto seq : AudioCollection::Instance->GetAllSequences()) { CVarClearBlock("gAudioEditor.ReplacedSequences");
CVarClear(std::string("gAudioEditor.ReplacedSequences." + seq.second.sfxKey).c_str());
}
} }
void ConfigVersion3Updater::Update(Ship::Config* conf) { void ConfigVersion3Updater::Update(Ship::Config* conf) {