diff options
author | Filippos Karapetis | 2009-06-01 07:06:04 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-06-01 07:06:04 +0000 |
commit | 76bd1b7c0e7e65cc65c0e6aeb151678d61ddefa7 (patch) | |
tree | b94552d92e3463f680b42d137ec0a6bc37391f53 /engines | |
parent | 4269c3a4ea04909edec47669b42b10a9449fe250 (diff) | |
download | scummvm-rg350-76bd1b7c0e7e65cc65c0e6aeb151678d61ddefa7.tar.gz scummvm-rg350-76bd1b7c0e7e65cc65c0e6aeb151678d61ddefa7.tar.bz2 scummvm-rg350-76bd1b7c0e7e65cc65c0e6aeb151678d61ddefa7.zip |
Removed the sci_max_allowed_unknown_kernel_functions array
svn-id: r41094
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/engine/kernel.cpp | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/engines/sci/engine/kernel.cpp b/engines/sci/engine/kernel.cpp index 361f7196a0..914ccd09e4 100644 --- a/engines/sci/engine/kernel.cpp +++ b/engines/sci/engine/kernel.cpp @@ -311,20 +311,6 @@ struct SciKernelFunction { const char *signature; /* kfunct signature */ }; -static const int sci_max_allowed_unknown_kernel_functions[] = { - 0, - 0x72, // SCI0 - 0x7b, // SCI01/EGA - 0x7b, // SCI01/VGA - 0x7b, // SCI01/VGA ODD - 0x7b, // SCI1/EARLY - 0x7b, // SCI1/LATE - 0x7b, // SCI1.1 -#ifdef ENABLE_SCI32 - 0x0, // SCI32 -#endif -}; - #define DEFUN(nm, cname, sig) {KF_NEW, nm, cname, sig} #define NOFUN(nm) {KF_NONE, nm, NULL, NULL} @@ -603,7 +589,7 @@ int script_map_kernel(EngineState *s) { int mapped = 0; int ignored = 0; uint functions_nr = s->_vocabulary->getKernelNamesSize(); - uint max_functions_nr = sci_max_allowed_unknown_kernel_functions[s->resmgr->_sciVersion]; + uint max_functions_nr = (s->resmgr->_sciVersion == SCI_VERSION_0) ? 0x72 : 0x7b; if (functions_nr < max_functions_nr) { warning("SCI version believed to have %d kernel" |