mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-24 03:24:50 +00:00
WINTERMUTE: Flush ConfMan to disk on every change (#1314)
* WINTERMUTE: Flush ConfMan to disk
This commit is contained in:
parent
2373fd8152
commit
4c25af8191
@ -237,6 +237,7 @@ BaseGame::~BaseGame() {
|
||||
LOG(0, "Shutting down...");
|
||||
|
||||
ConfMan.setBool("last_run", true);
|
||||
ConfMan.flushToDisk();
|
||||
|
||||
cleanup();
|
||||
|
||||
@ -3884,7 +3885,6 @@ bool BaseGame::isDoubleClick(int32 buttonIndex) {
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
void BaseGame::autoSaveOnExit() {
|
||||
_soundMgr->saveSettings();
|
||||
ConfMan.flushToDisk();
|
||||
|
||||
if (!_autoSaveOnExit) {
|
||||
return;
|
||||
|
@ -101,6 +101,7 @@ bool SaveLoad::saveGame(int slot, const char *desc, bool quickSave, BaseGame *ga
|
||||
pm->putDWORD(BaseEngine::instance().getRandomSource()->getSeed());
|
||||
if (DID_SUCCEED(ret = pm->saveFile(filename))) {
|
||||
ConfMan.setInt("most_recent_saveslot", slot);
|
||||
ConfMan.flushToDisk();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user