From 930e5e9aaa33d93b291618a8a6be439e397c9c4f Mon Sep 17 00:00:00 2001 From: tildearrow Date: Thu, 25 Apr 2024 13:30:30 -0500 Subject: [PATCH] GUI: fix chip flags storage in user presets --- src/gui/presets.cpp | 2 +- src/gui/userPresets.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/presets.cpp b/src/gui/presets.cpp index 803495d2b..a9b13113e 100644 --- a/src/gui/presets.cpp +++ b/src/gui/presets.cpp @@ -3176,7 +3176,7 @@ FurnaceGUISysDef::FurnaceGUISysDef(const char* n, const char* def, DivEngine* e) float panFR=conf.getFloat(nextStr.c_str(),0.0f); conf.remove(nextStr.c_str()); nextStr=fmt::sprintf("flags%d",i); - String flags=conf.getString(nextStr.c_str(),""); + String flags=taDecodeBase64(conf.getString(nextStr.c_str(),"").c_str()); conf.remove(nextStr.c_str()); orig.push_back(FurnaceGUISysDefChip(e->systemFromFileFur(id),vol,pan,flags.c_str(),panFR)); diff --git a/src/gui/userPresets.cpp b/src/gui/userPresets.cpp index d0b5369c7..1bbab1909 100644 --- a/src/gui/userPresets.cpp +++ b/src/gui/userPresets.cpp @@ -438,9 +438,9 @@ void FurnaceGUI::drawUserPresets() { if (ImGui::TreeNode("Configure")) { DivConfig sysFlags; - sysFlags.loadFromBase64(chip.flags.c_str()); + sysFlags.loadFromMemory(chip.flags.c_str()); if (drawSysConf(-1,i,chip.sys,sysFlags,false)) { - chip.flags=sysFlags.toBase64(); + chip.flags=sysFlags.toString(); mustBake=true; } ImGui::TreePop();