diff options
-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 ////////////////////////////////////////////////////////////////////////// |