From 6f7361e1a49a61fc9ddda0b3297d2e31c0aafbc7 Mon Sep 17 00:00:00 2001 From: Adam Bird Date: Tue, 20 Dec 2022 17:09:12 -0500 Subject: [PATCH] only save authentic sequence cvars (#2216) --- soh/soh/Enhancements/sfx-editor/SfxEditor.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/soh/soh/Enhancements/sfx-editor/SfxEditor.cpp b/soh/soh/Enhancements/sfx-editor/SfxEditor.cpp index 43d0534c4..f14b83b86 100644 --- a/soh/soh/Enhancements/sfx-editor/SfxEditor.cpp +++ b/soh/soh/Enhancements/sfx-editor/SfxEditor.cpp @@ -189,6 +189,10 @@ void Draw_SfxTab(const std::string& tabId, const std::map= MAX_AUTHENTIC_SEQID) { + continue; + } const std::string cvarKey = "gSfxEditor_" + sfxKey; CVar_SetS32(cvarKey.c_str(), defaultValue); } @@ -208,7 +212,8 @@ void Draw_SfxTab(const std::string& tabId, const std::map MAX_AUTHENTIC_SEQID) { + // Only save authentic sequence CVars + if (((seqType & SEQ_BGM_CUSTOM) || seqType == SEQ_FANFARE) && defaultValue >= MAX_AUTHENTIC_SEQID) { continue; } const int randomValue = values.back(); @@ -229,6 +234,7 @@ void Draw_SfxTab(const std::string& tabId, const std::map= MAX_AUTHENTIC_SEQID) { continue; }