aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kscripts.cpp
diff options
context:
space:
mode:
authorMartin Kiewitz2010-07-11 19:16:16 +0000
committerMartin Kiewitz2010-07-11 19:16:16 +0000
commita94b25f99cc29700770089982850eab9d11a3d87 (patch)
treeb7859d89f67bb63e23f2d00eb651028790c56522 /engines/sci/engine/kscripts.cpp
parent737f2c0fa4b44033a1f6343d5ee700228b00d10d (diff)
downloadscummvm-rg350-a94b25f99cc29700770089982850eab9d11a3d87.tar.gz
scummvm-rg350-a94b25f99cc29700770089982850eab9d11a3d87.tar.bz2
scummvm-rg350-a94b25f99cc29700770089982850eab9d11a3d87.zip
SCI: kUnLoad - removing unneeded warnings (signature mismatch will happen now), added information about parameters
svn-id: r50806
Diffstat (limited to 'engines/sci/engine/kscripts.cpp')
-rw-r--r--engines/sci/engine/kscripts.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/engines/sci/engine/kscripts.cpp b/engines/sci/engine/kscripts.cpp
index 4a50553b34..029943b070 100644
--- a/engines/sci/engine/kscripts.cpp
+++ b/engines/sci/engine/kscripts.cpp
@@ -49,6 +49,8 @@ reg_t kLoad(EngineState *s, int argc, reg_t *argv) {
}
// Unloads an arbitrary resource of type 'restype' with resource numbber 'resnr'
+// behaviour of this call didn't change between sci0->sci1.1 parameter wise, which means getting called with
+// 1 or 3+ parameters is not right according to sierra sci
reg_t kUnLoad(EngineState *s, int argc, reg_t *argv) {
if (argc >= 2) {
ResourceType restype = (ResourceType)(argv[0].toUint16() & 0x7f);
@@ -64,11 +66,6 @@ reg_t kUnLoad(EngineState *s, int argc, reg_t *argv) {
if (restype == kResourceTypeMemory)
s->_segMan->freeHunkEntry(resnr);
-
- if (argc > 2)
- warning("kUnload called with more than 2 parameters (%d)", argc);
- } else {
- warning("kUnload called with less than 2 parameters (%d) - ignoring", argc);
}
return s->r_acc;