Make ConfigUpdaterV2 use CVarClearBlock instead of manually scanning. (#4435)
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user