From c04f123344b1a045d3236f89b43ec1bd1110c14e Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sat, 25 Feb 2023 00:43:27 -0500 Subject: [PATCH] fix critical bug that breaks initial system it was caused by the intro... --- src/engine/engine.cpp | 2 ++ src/gui/settings.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/src/engine/engine.cpp b/src/engine/engine.cpp index 85effd03c..8efde4e39 100644 --- a/src/engine/engine.cpp +++ b/src/engine/engine.cpp @@ -1481,6 +1481,7 @@ void DivEngine::createNewFromDefaults() { bool oldVol=getConfInt("configVersion",DIV_ENGINE_VERSION)<135; if (preset.empty()) { // try loading old preset + logD("trying to load old preset"); preset=decodeSysDesc(getConfString("initialSys","")); oldVol=false; } @@ -4468,6 +4469,7 @@ bool DivEngine::init() { bool oldVol=getConfInt("configVersion",DIV_ENGINE_VERSION)<135; if (preset.empty()) { // try loading old preset + logD("trying to load old preset"); preset=decodeSysDesc(getConfString("initialSys","")); oldVol=false; } diff --git a/src/gui/settings.cpp b/src/gui/settings.cpp index 1ee4fdd7e..c98ef7cbb 100644 --- a/src/gui/settings.cpp +++ b/src/gui/settings.cpp @@ -2758,6 +2758,7 @@ void FurnaceGUI::syncSettings() { settings.initialSys.set(fmt::sprintf("pan%d",i),newPan); } e->setConf("initialSys2",settings.initialSys.toBase64()); + e->setConf("configVersion",DIV_ENGINE_VERSION); } }