diff options
author | lolbot-iichan | 2019-01-20 18:39:16 +0300 |
---|---|---|
committer | Filippos Karapetis | 2020-01-11 18:05:39 +0200 |
commit | 7d9b584a84e0d6c302ba262eb2a336ea7c638ef2 (patch) | |
tree | 51020b5221de43c74985b347ab4a7054145ba0bb /engines | |
parent | 86b53e55d888c99a5fb7b07ad010456054af1575 (diff) | |
download | scummvm-rg350-7d9b584a84e0d6c302ba262eb2a336ea7c638ef2.tar.gz scummvm-rg350-7d9b584a84e0d6c302ba262eb2a336ea7c638ef2.tar.bz2 scummvm-rg350-7d9b584a84e0d6c302ba262eb2a336ea7c638ef2.zip |
WINTERMUTE: Add FoxTail registry flush method
FoxTail requires Game.RegistryFlush() method to force saving of persistent settings
Diffstat (limited to 'engines')
-rw-r--r-- | engines/wintermute/base/base_game.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/engines/wintermute/base/base_game.cpp b/engines/wintermute/base/base_game.cpp index 81a34bd5bc..f5caaa8d2e 100644 --- a/engines/wintermute/base/base_game.cpp +++ b/engines/wintermute/base/base_game.cpp @@ -1260,6 +1260,21 @@ bool BaseGame::scCallMethod(ScScript *script, ScStack *stack, ScStack *thisStack return STATUS_OK; } +#ifdef ENABLE_FOXTAIL + ////////////////////////////////////////////////////////////////////////// + // [FoxTail] RegistryFlush + // Return value is never used + // Used at SaveGameSettings() and Game.RegistryFlush() + // Called after a series of RegWriteNumber calls + ////////////////////////////////////////////////////////////////////////// + else if (strcmp(name, "RegistryFlush") == 0) { + stack->correctParams(0); + ConfMan.flushToDisk(); + stack->pushNULL(); + return STATUS_OK; + } +#endif + ////////////////////////////////////////////////////////////////////////// // RegWriteNumber ////////////////////////////////////////////////////////////////////////// |