aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2011-10-18 02:36:59 +0300
committerFilippos Karapetis2011-10-18 02:36:59 +0300
commit701e318360ce8d400a59d5890be8ad335d04b326 (patch)
tree39c80ea5be2644bf6fa25b3c8770471a56f51d86 /engines
parentee4c96b1d2a1479b86869976e386fdb91d35be89 (diff)
downloadscummvm-rg350-701e318360ce8d400a59d5890be8ad335d04b326.tar.gz
scummvm-rg350-701e318360ce8d400a59d5890be8ad335d04b326.tar.bz2
scummvm-rg350-701e318360ce8d400a59d5890be8ad335d04b326.zip
SCI: Set the correct number of kernel functions for SCI3
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/engine/kernel.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/sci/engine/kernel.cpp b/engines/sci/engine/kernel.cpp
index a83a026762..6f783d79e8 100644
--- a/engines/sci/engine/kernel.cpp
+++ b/engines/sci/engine/kernel.cpp
@@ -828,7 +828,8 @@ void Kernel::setDefaultKernelNames(GameFeatures *features) {
enum {
kKernelEntriesSci2 = 0x8b,
kKernelEntriesGk2Demo = 0xa0,
- kKernelEntriesSci21 = 0x9d
+ kKernelEntriesSci21 = 0x9d,
+ kKernelEntriesSci3 = 0xa1
};
void Kernel::setKernelNamesSci2() {
@@ -856,8 +857,11 @@ void Kernel::setKernelNamesSci21(GameFeatures *features) {
// OnMe is IsOnMe here, but they should be compatible
_kernelNames[0x23] = "Robot"; // Graph in SCI2
_kernelNames[0x2e] = "Priority"; // DisposeTextBitmap in SCI2
- } else
+ } else if (getSciVersion() != SCI_VERSION_3) {
_kernelNames = Common::StringArray(sci21_default_knames, kKernelEntriesSci21);
+ } else if (getSciVersion() == SCI_VERSION_3) {
+ _kernelNames = Common::StringArray(sci21_default_knames, kKernelEntriesSci3);
+ }
}
#endif