parent
a36d78305a
commit
b7e63d2ee8
|
@ -193,6 +193,4 @@ void DivEngine::factoryReset() {
|
|||
if (i>0) path+=fmt::sprintf(".%d",i);
|
||||
deleteFile(path.c_str());
|
||||
}
|
||||
|
||||
exit(0);
|
||||
}
|
||||
|
|
|
@ -6573,6 +6573,7 @@ bool FurnaceGUI::loop() {
|
|||
if (ImGui::Button(_("Yes"))) {
|
||||
e->factoryReset();
|
||||
quit=true;
|
||||
quitNoSave=true;
|
||||
ImGui::CloseCurrentPopup();
|
||||
}
|
||||
popDestColor();
|
||||
|
@ -8378,13 +8379,15 @@ void FurnaceGUI::commitState(DivConfig& conf) {
|
|||
}
|
||||
|
||||
bool FurnaceGUI::finish(bool saveConfig) {
|
||||
commitState(e->getConfObject());
|
||||
if (userPresetsOpen) {
|
||||
saveUserPresets(true);
|
||||
}
|
||||
if (saveConfig) {
|
||||
logI("saving config.");
|
||||
e->saveConf();
|
||||
if (!quitNoSave) {
|
||||
commitState(e->getConfObject());
|
||||
if (userPresetsOpen) {
|
||||
saveUserPresets(true);
|
||||
}
|
||||
if (saveConfig) {
|
||||
logI("saving config.");
|
||||
e->saveConf();
|
||||
}
|
||||
}
|
||||
rend->quitGUI();
|
||||
ImGui_ImplSDL2_Shutdown();
|
||||
|
@ -8484,6 +8487,7 @@ FurnaceGUI::FurnaceGUI():
|
|||
replacePendingSample(false),
|
||||
displayExportingROM(false),
|
||||
displayExportingCS(false),
|
||||
quitNoSave(false),
|
||||
changeCoarse(false),
|
||||
mobileEdit(false),
|
||||
killGraphics(false),
|
||||
|
|
|
@ -1677,6 +1677,7 @@ class FurnaceGUI {
|
|||
bool displayPendingIns, pendingInsSingle, displayPendingRawSample, snesFilterHex, modTableHex, displayEditString;
|
||||
bool displayPendingSamples, replacePendingSample;
|
||||
bool displayExportingROM, displayExportingCS;
|
||||
bool quitNoSave;
|
||||
bool changeCoarse;
|
||||
bool mobileEdit;
|
||||
bool killGraphics;
|
||||
|
|
Loading…
Reference in a new issue