aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sci/engine/kernel.cpp11
-rw-r--r--engines/sci/vocabulary.cpp11
2 files changed, 11 insertions, 11 deletions
diff --git a/engines/sci/engine/kernel.cpp b/engines/sci/engine/kernel.cpp
index 812b12a456..eb3abec50d 100644
--- a/engines/sci/engine/kernel.cpp
+++ b/engines/sci/engine/kernel.cpp
@@ -415,6 +415,17 @@ void Kernel::detectSciFeatures() {
printf("new\n");
}
+int Kernel::findSelector(const char *selectorName) const {
+ for (uint pos = 0; pos < _selectorNames.size(); ++pos) {
+ if (_selectorNames[pos] == selectorName)
+ return pos;
+ }
+
+ debugC(2, kDebugLevelVM, "Could not map '%s' to any selector\n", selectorName);
+
+ return -1;
+}
+
void Kernel::loadSelectorNames() {
Resource *r = _resMan->findResource(ResourceId(kResourceTypeVocab, VOCAB_RESOURCE_SELECTORS), 0);
bool oldScriptHeader = (_resMan->sciVersion() == SCI_VERSION_0_EARLY);
diff --git a/engines/sci/vocabulary.cpp b/engines/sci/vocabulary.cpp
index 1909335904..60e3334af0 100644
--- a/engines/sci/vocabulary.cpp
+++ b/engines/sci/vocabulary.cpp
@@ -467,17 +467,6 @@ void Vocabulary::printParserWords() const {
con->DebugPrintf("\n");
}
-int Kernel::findSelector(const char *selectorName) const {
- for (uint pos = 0; pos < _selectorNames.size(); ++pos) {
- if (_selectorNames[pos] == selectorName)
- return pos;
- }
-
- debugC(2, kDebugLevelVM, "Could not map '%s' to any selector\n", selectorName);
-
- return -1;
-}
-
void _vocab_recursive_ptree_dump_treelike(parse_tree_node_t *nodes, int nr, int prevnr) {
if ((nr > VOCAB_TREE_NODES)/* || (nr < prevnr)*/) {
printf("Error(%04x)", nr);