diff options
author | lolbot-iichan | 2019-07-16 01:20:39 +0300 |
---|---|---|
committer | Filippos Karapetis | 2019-07-16 20:24:42 +0300 |
commit | 0781584dfcf02ed063cd114fa02572a0bf7f81ee (patch) | |
tree | 48fa8365be413f90bdbc2745ba460ec33cbb2313 /engines/wintermute/base/scriptables | |
parent | ed635a5b01f62497ecf064a330c93b478ea9dea1 (diff) | |
download | scummvm-rg350-0781584dfcf02ed063cd114fa02572a0bf7f81ee.tar.gz scummvm-rg350-0781584dfcf02ed063cd114fa02572a0bf7f81ee.tar.bz2 scummvm-rg350-0781584dfcf02ed063cd114fa02572a0bf7f81ee.zip |
WINTERMUTE: Suppress warning on Directory.Create() for Hamlet
Diffstat (limited to 'engines/wintermute/base/scriptables')
-rw-r--r-- | engines/wintermute/base/scriptables/script_ext_directory.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/engines/wintermute/base/scriptables/script_ext_directory.cpp b/engines/wintermute/base/scriptables/script_ext_directory.cpp index 2926edb31f..faf3ac1377 100644 --- a/engines/wintermute/base/scriptables/script_ext_directory.cpp +++ b/engines/wintermute/base/scriptables/script_ext_directory.cpp @@ -29,6 +29,7 @@ #include "engines/wintermute/base/scriptables/script_ext_directory.h" #include "engines/wintermute/base/scriptables/script_stack.h" #include "engines/wintermute/base/scriptables/script_value.h" +#include "engines/wintermute/base/base_engine.h" #include "engines/wintermute/persistent.h" namespace Wintermute { @@ -65,9 +66,14 @@ bool SXDirectory::scCallMethod(ScScript *script, ScStack *stack, ScStack *thisSt stack->correctParams(1); const char *path = stack->pop()->getString(); - warning("Directory.Create is not implemented! Returning false..."); + if (BaseEngine::instance().getGameId() == "hamlet") { + // No need to actually create anything since "gamelet.save" is stored at SavefileManager + stack->pushBool(true); + } else { + warning("Directory.Create is not implemented! Returning false..."); + stack->pushBool(false); + } - stack->pushBool(false); return STATUS_OK; } |