diff options
| author | Filippos Karapetis | 2010-07-01 20:16:42 +0000 |
|---|---|---|
| committer | Filippos Karapetis | 2010-07-01 20:16:42 +0000 |
| commit | fa014867cfe6bde10467761e1241b646ecb0460f (patch) | |
| tree | 380eb31bc8709fed89e2fb2f5974381feb37c14f /engines/sci/engine/vm.cpp | |
| parent | 1a675dcd86d7d3d3cae97c7e7b1bc81555af93f1 (diff) | |
| download | scummvm-rg350-fa014867cfe6bde10467761e1241b646ecb0460f.tar.gz scummvm-rg350-fa014867cfe6bde10467761e1241b646ecb0460f.tar.bz2 scummvm-rg350-fa014867cfe6bde10467761e1241b646ecb0460f.zip | |
SCI: Mark the ShiftScreen, ListOps and ATan SCI1 kernel functions as unused (dummy) - we haven't seen them being used anywhere. Added a check and an error in case a kernel function which is considered to be unused is called.
svn-id: r50567
Diffstat (limited to 'engines/sci/engine/vm.cpp')
| -rw-r--r-- | engines/sci/engine/vm.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/sci/engine/vm.cpp b/engines/sci/engine/vm.cpp index 32aad38880..49049585ee 100644 --- a/engines/sci/engine/vm.cpp +++ b/engines/sci/engine/vm.cpp @@ -852,6 +852,11 @@ static void callKernelFunc(EngineState *s, int kernelFuncNr, int argc) { } warning("%s", warningMsg.c_str()); + + // Make sure that the game doesn't call a function that is considered unused. If + // that happens, error out. + if (kernelCall.origName == "Dummy") + error("Kernel function %d was called, which was considered to be unused", kernelFuncNr); } } |
