SCI: Cleanup for some SegManager internals
- rename segGet and getSegment to getScriptSegment; the two can be distinguished by the parameter count. - rename type SCRIPT_GET to ScriptLoadType to conform with our code formatting conventions - rename get_class_address to getClassAddress - some cleanup svn-id: r43981
This commit is contained in:
parent
d04b5d2c9b
commit
fdbb167ea3
10 changed files with 51 additions and 51 deletions
|
@ -268,7 +268,7 @@ reg_t kScriptID(EngineState *s, int, int argc, reg_t *argv) {
|
|||
if (argv[0].segment)
|
||||
return argv[0];
|
||||
|
||||
SegmentId scriptSeg = s->segMan->getSegment(script, SCRIPT_GET_LOAD);
|
||||
SegmentId scriptSeg = s->segMan->getScriptSegment(script, SCRIPT_GET_LOAD);
|
||||
Script *scr;
|
||||
|
||||
if (!scriptSeg)
|
||||
|
@ -297,7 +297,7 @@ reg_t kDisposeScript(EngineState *s, int, int argc, reg_t *argv) {
|
|||
if (argv[0].segment)
|
||||
return s->r_acc;
|
||||
|
||||
int id = s->segMan->segGet(script);
|
||||
int id = s->segMan->getScriptSegment(script);
|
||||
Script *scr = s->segMan->getScriptIfLoaded(id);
|
||||
if (scr) {
|
||||
if (s->_executionStack.back().addr.pc.segment != id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue