SCI: Add global g_sci pointer to the active SciEngine instance

svn-id: r48046
This commit is contained in:
Max Horn 2010-02-13 17:42:49 +00:00
parent 24fd77eb24
commit ac4d325e0d
21 changed files with 64 additions and 49 deletions

View file

@ -1635,7 +1635,7 @@ bool Console::cmdGCObjects(int argc, const char **argv) {
void _print_address(void * _, reg_t addr) {
if (addr.segment)
((SciEngine *)g_engine)->getSciDebugger()->DebugPrintf(" %04x:%04x\n", PRINT_REG(addr));
g_sci->getSciDebugger()->DebugPrintf(" %04x:%04x\n", PRINT_REG(addr));
}
bool Console::cmdGCShowReachable(int argc, const char **argv) {