diff options
| author | Malkierian <malkierian@gmail.com> | 2024-10-17 18:41:38 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-17 18:41:38 -0700 |
| commit | 5a23da4ce06b7d5d34859bf7e33dd063a7dd941c (patch) | |
| tree | caca02c17e07a595b42f2e90eaf9d0ec72a8f914 | |
| parent | dba74f8805ebcc0bf0daeaf99424c3226f4a00c8 (diff) | |
Make ConfigUpdaterV2 use CVarClearBlock instead of manually scanning. (#4435)
| -rw-r--r-- | soh/soh/config/ConfigUpdaters.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/soh/soh/config/ConfigUpdaters.cpp b/soh/soh/config/ConfigUpdaters.cpp index 36ac355bf..8415c23e0 100644 --- a/soh/soh/config/ConfigUpdaters.cpp +++ b/soh/soh/config/ConfigUpdaters.cpp @@ -66,9 +66,7 @@ namespace SOH { } void ConfigVersion2Updater::Update(Ship::Config* conf) { - for (auto seq : AudioCollection::Instance->GetAllSequences()) { - CVarClear(std::string("gAudioEditor.ReplacedSequences." + seq.second.sfxKey).c_str()); - } + CVarClearBlock("gAudioEditor.ReplacedSequences"); } void ConfigVersion3Updater::Update(Ship::Config* conf) { |
