aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/base/scriptables
diff options
context:
space:
mode:
authorlolbot-iichan2019-12-02 01:35:41 +0300
committerFilippos Karapetis2019-12-02 11:06:01 +0200
commit710f395ca71180ae98b5e7c9f52c5a3fac1d44d5 (patch)
tree700a7e5ed66c33afefff978914d9c0a511548bcf /engines/wintermute/base/scriptables
parente2d91258b7bfb989dc099f516bb31ceb44554529 (diff)
downloadscummvm-rg350-710f395ca71180ae98b5e7c9f52c5a3fac1d44d5.tar.gz
scummvm-rg350-710f395ca71180ae98b5e7c9f52c5a3fac1d44d5.tar.bz2
scummvm-rg350-710f395ca71180ae98b5e7c9f52c5a3fac1d44d5.zip
WINTERMUTE: restored commented out stack->pop()
Unused variables were cleaned up at 47811167d5ddd9cbf64099ad36f2da5ae413fc86, commenting out a bit too much code, since stack->pop() has a side effect (popping a value from data stack).
Diffstat (limited to 'engines/wintermute/base/scriptables')
-rw-r--r--engines/wintermute/base/scriptables/script_ext_directory.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/wintermute/base/scriptables/script_ext_directory.cpp b/engines/wintermute/base/scriptables/script_ext_directory.cpp
index 0b5c7a74a6..6ea067a0fc 100644
--- a/engines/wintermute/base/scriptables/script_ext_directory.cpp
+++ b/engines/wintermute/base/scriptables/script_ext_directory.cpp
@@ -64,7 +64,7 @@ bool SXDirectory::scCallMethod(ScScript *script, ScStack *stack, ScStack *thisSt
//////////////////////////////////////////////////////////////////////////
if (strcmp(name, "Create") == 0) {
stack->correctParams(1);
- //const char *path = stack->pop()->getString();
+ stack->pop()->getString();
if (BaseEngine::instance().getGameId() == "hamlet") {
// No need to actually create anything since "gamelet.save" is stored at SavefileManager
@@ -82,7 +82,7 @@ bool SXDirectory::scCallMethod(ScScript *script, ScStack *stack, ScStack *thisSt
//////////////////////////////////////////////////////////////////////////
else if (strcmp(name, "Delete") == 0) {
stack->correctParams(1);
- //const char *path = stack->pop()->getString();
+ stack->pop()->getString();
warning("Directory.Delete is not implemented! Returning false...");
@@ -95,8 +95,8 @@ bool SXDirectory::scCallMethod(ScScript *script, ScStack *stack, ScStack *thisSt
//////////////////////////////////////////////////////////////////////////
else if (strcmp(name, "GetFiles") == 0 || strcmp(name, "GetDirectories") == 0) {
stack->correctParams(2);
- //const char *path = stack->pop()->getString();
- //const char *mask = stack->pop()->getString();
+ stack->pop()->getString();
+ stack->pop()->getString();
stack->pushInt(0);
BaseScriptable *array = makeSXArray(_gameRef, stack);