fix critical bug that breaks initial system

it was caused by the intro...
This commit is contained in:
tildearrow 2023-02-25 00:43:27 -05:00
parent b0f0fa8a05
commit c04f123344
2 changed files with 3 additions and 0 deletions

View File

@ -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;
}

View File

@ -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);
}
}