mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-27 05:32:45 +00:00
SCI: got rid of vocabulary_lookup_sname
svn-id: r40771
This commit is contained in:
parent
25980bc29c
commit
4c17541276
@ -2157,7 +2157,7 @@ static int c_send(EngineState *s, const Common::Array<cmd_param_t> &cmdParams) {
|
||||
reg_t *vptr;
|
||||
reg_t fptr;
|
||||
|
||||
selector_id = vocabulary_lookup_sname(s->_selectorNames, selector_name);
|
||||
selector_id = script_find_selector(s, selector_name);
|
||||
|
||||
if (selector_id < 0) {
|
||||
sciprintf("Unknown selector: \"%s\"\n", selector_name);
|
||||
|
@ -83,15 +83,6 @@ bool vocabulary_get_snames(ResourceManager *resmgr, bool isOldSci0, Common::Stri
|
||||
return true;
|
||||
}
|
||||
|
||||
int vocabulary_lookup_sname(const Common::StringList &selectorNames, const char *sname) {
|
||||
for (uint pos = 0; pos < selectorNames.size(); ++pos) {
|
||||
if (selectorNames[pos] == sname)
|
||||
return pos;
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
void vocabulary_get_opcodes(ResourceManager *resmgr, Common::Array<opcode> &o) {
|
||||
int count, i = 0;
|
||||
Resource* r = resmgr->findResource(kResourceTypeVocab, VOCAB_RESOURCE_OPCODES, 0);
|
||||
|
@ -194,10 +194,6 @@ int vocabulary_get_class_count(ResourceManager *resmgr);
|
||||
*/
|
||||
bool vocabulary_get_snames(ResourceManager *resmgr, bool isOldSci0, Common::StringList &selectorNames);
|
||||
|
||||
/* Look up a selector name in an array, return the index */
|
||||
int vocabulary_lookup_sname(const Common::StringList &selectorNames, const char *sname);
|
||||
|
||||
|
||||
/**
|
||||
* Obtain the list of opcodes.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user