aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kernel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/engine/kernel.cpp')
-rw-r--r--engines/sci/engine/kernel.cpp27
1 files changed, 1 insertions, 26 deletions
diff --git a/engines/sci/engine/kernel.cpp b/engines/sci/engine/kernel.cpp
index 436abd66d4..81a40b51e1 100644
--- a/engines/sci/engine/kernel.cpp
+++ b/engines/sci/engine/kernel.cpp
@@ -354,9 +354,8 @@ SciKernelFunction kfunct_mappers[] = {
Kernel::Kernel(ResourceManager *resMan) : _resMan(resMan) {
loadSelectorNames();
- detectSciFeatures();
-
mapSelectors(); // Map a few special selectors for later use
+
loadKernelNames();
mapFunctions(); // Map the kernel functions
}
@@ -384,30 +383,6 @@ const Common::String &Kernel::getKernelName(uint number) const {
return _kernelNames[number];
}
-void Kernel::detectSciFeatures() {
- SciVersion version = getSciVersion();
-
- features = 0;
-
- // Initialize features based on SCI version
-
- // Script header and graphics functions
- if (version == SCI_VERSION_0_EARLY) {
- features |= kFeatureOldScriptHeader | kFeatureOldGfxFunctions;
- } else if (version == SCI_VERSION_0_LATE) {
- if (_selectorCache.motionCue == -1)
- features |= kFeatureOldGfxFunctions;
- }
-
- printf("Kernel auto-detected features:\n");
-
- printf("Graphics functions: ");
- if (features & kFeatureOldGfxFunctions)
- printf("old\n");
- else
- printf("new\n");
-}
-
int Kernel::findSelector(const char *selectorName) const {
for (uint pos = 0; pos < _selectorNames.size(); ++pos) {
if (_selectorNames[pos] == selectorName)