SCI: cleanup
svn-id: r49573
This commit is contained in:
parent
c8ee854600
commit
afa2af5dfb
3 changed files with 2 additions and 4 deletions
|
@ -2370,7 +2370,7 @@ bool Console::cmdSend(int argc, const char **argv) {
|
|||
return true;
|
||||
}
|
||||
|
||||
SelectorType selector_type = lookupSelector(_engine->_gamestate->_segMan, object, selectorId, 0, 0);
|
||||
SelectorType selector_type = lookupSelector(_engine->_gamestate->_segMan, object, selectorId, NULL, NULL);
|
||||
|
||||
if (selector_type == kSelectorNone) {
|
||||
DebugPrintf("Object does not support selector: \"%s\"\n", selector_name);
|
||||
|
|
|
@ -258,7 +258,6 @@ private:
|
|||
|
||||
ResourceManager *_resMan;
|
||||
SegManager *_segMan;
|
||||
uint32 features;
|
||||
|
||||
// Kernel-related lists
|
||||
Common::StringArray _selectorNames;
|
||||
|
|
|
@ -204,14 +204,13 @@ void invokeSelector(EngineState *s, reg_t object, int selectorId,
|
|||
int k_argc, StackPtr k_argp, int argc, const reg_t *argv) {
|
||||
int i;
|
||||
int framesize = 2 + 1 * argc;
|
||||
reg_t address;
|
||||
int slc_type;
|
||||
StackPtr stackframe = k_argp + k_argc;
|
||||
|
||||
stackframe[0] = make_reg(0, selectorId); // The selector we want to call
|
||||
stackframe[1] = make_reg(0, argc); // Argument count
|
||||
|
||||
slc_type = lookupSelector(s->_segMan, object, selectorId, NULL, &address);
|
||||
slc_type = lookupSelector(s->_segMan, object, selectorId, NULL, NULL);
|
||||
|
||||
if (slc_type == kSelectorNone) {
|
||||
error("Selector '%s' of object at %04x:%04x could not be invoked",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue