parent
3e87c0a0df
commit
d700bfca08
|
@ -4013,11 +4013,13 @@ bool DivEngine::init() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DivEngine::quit() {
|
bool DivEngine::quit(bool saveConfig) {
|
||||||
deinitAudioBackend();
|
deinitAudioBackend();
|
||||||
quitDispatch();
|
quitDispatch();
|
||||||
logI("saving config.");
|
if (saveConfig) {
|
||||||
saveConf();
|
logI("saving config.");
|
||||||
|
saveConf();
|
||||||
|
}
|
||||||
active=false;
|
active=false;
|
||||||
for (int i=0; i<DIV_MAX_OUTPUTS; i++) {
|
for (int i=0; i<DIV_MAX_OUTPUTS; i++) {
|
||||||
if (oscBuf[i]!=NULL) delete[] oscBuf[i];
|
if (oscBuf[i]!=NULL) delete[] oscBuf[i];
|
||||||
|
|
|
@ -220,7 +220,7 @@ struct DivDispatchContainer {
|
||||||
void fillBuf(size_t runtotal, size_t offset, size_t size);
|
void fillBuf(size_t runtotal, size_t offset, size_t size);
|
||||||
void clear();
|
void clear();
|
||||||
void init(DivSystem sys, DivEngine* eng, int chanCount, double gotRate, const DivConfig& flags, bool isRender=false);
|
void init(DivSystem sys, DivEngine* eng, int chanCount, double gotRate, const DivConfig& flags, bool isRender=false);
|
||||||
void quit();
|
void quit(bool saveConfig=true);
|
||||||
DivDispatchContainer():
|
DivDispatchContainer():
|
||||||
dispatch(NULL),
|
dispatch(NULL),
|
||||||
bbInLen(0),
|
bbInLen(0),
|
||||||
|
|
|
@ -7242,8 +7242,12 @@ void FurnaceGUI::commitState() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool FurnaceGUI::finish() {
|
bool FurnaceGUI::finish(bool saveConfig) {
|
||||||
commitState();
|
commitState();
|
||||||
|
if (saveConfig) {
|
||||||
|
logI("saving config.");
|
||||||
|
saveConf();
|
||||||
|
}
|
||||||
rend->quitGUI();
|
rend->quitGUI();
|
||||||
ImGui_ImplSDL2_Shutdown();
|
ImGui_ImplSDL2_Shutdown();
|
||||||
quitRender();
|
quitRender();
|
||||||
|
|
|
@ -2735,7 +2735,7 @@ class FurnaceGUI {
|
||||||
bool detectOutOfBoundsWindow(SDL_Rect& failing);
|
bool detectOutOfBoundsWindow(SDL_Rect& failing);
|
||||||
int processEvent(SDL_Event* ev);
|
int processEvent(SDL_Event* ev);
|
||||||
bool loop();
|
bool loop();
|
||||||
bool finish();
|
bool finish(bool saveConfig=false);
|
||||||
bool init();
|
bool init();
|
||||||
bool requestQuit();
|
bool requestQuit();
|
||||||
FurnaceGUI();
|
FurnaceGUI();
|
||||||
|
|
Loading…
Reference in a new issue