diff options
author | Filippos Karapetis | 2009-06-01 14:12:43 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-06-01 14:12:43 +0000 |
commit | 99c687463030254c5489cd3d47d876970ab7c080 (patch) | |
tree | 3491eba1a935eaea0a653fd173d5fad60fd72d1d /engines/sci/console.cpp | |
parent | 660aa716625866ae3a9db2a001ed3af6e108caaf (diff) | |
download | scummvm-rg350-99c687463030254c5489cd3d47d876970ab7c080.tar.gz scummvm-rg350-99c687463030254c5489cd3d47d876970ab7c080.tar.bz2 scummvm-rg350-99c687463030254c5489cd3d47d876970ab7c080.zip |
Split the kernel functions away from the vocabulary functions (WIP, saving/loading is broken)
svn-id: r41101
Diffstat (limited to 'engines/sci/console.cpp')
-rw-r--r-- | engines/sci/console.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp index a8883b549c..56605e1d17 100644 --- a/engines/sci/console.cpp +++ b/engines/sci/console.cpp @@ -134,8 +134,8 @@ bool Console::cmdGetVersion(int argc, const char **argv) { bool Console::cmdOpcodes(int argc, const char **argv) { DebugPrintf("Opcode names in numeric order [index: type name]:\n"); - for (uint seeker = 0; seeker < g_EngineState->_vocabulary->getOpcodesSize(); seeker++) { - opcode op = g_EngineState->_vocabulary->getOpcode(seeker); + for (uint seeker = 0; seeker < g_EngineState->_kernel->getOpcodesSize(); seeker++) { + opcode op = g_EngineState->_kernel->getOpcode(seeker); DebugPrintf("%03x: %03x %20s | ", seeker, op.type, op.name.c_str()); if ((seeker % 3) == 2) DebugPrintf("\n"); @@ -148,8 +148,8 @@ bool Console::cmdOpcodes(int argc, const char **argv) { bool Console::cmdSelectors(int argc, const char **argv) { DebugPrintf("Selector names in numeric order:\n"); - for (uint seeker = 0; seeker < g_EngineState->_vocabulary->getSelectorNamesSize(); seeker++) { - DebugPrintf("%03x: %20s | ", seeker, g_EngineState->_vocabulary->getSelectorName(seeker).c_str()); + for (uint seeker = 0; seeker < g_EngineState->_kernel->getSelectorNamesSize(); seeker++) { + DebugPrintf("%03x: %20s | ", seeker, g_EngineState->_kernel->getSelectorName(seeker).c_str()); if ((seeker % 3) == 2) DebugPrintf("\n"); } @@ -161,8 +161,8 @@ bool Console::cmdSelectors(int argc, const char **argv) { bool Console::cmdKernelNames(int argc, const char **argv) { DebugPrintf("Selector names in numeric order:\n"); - for (uint seeker = 0; seeker < g_EngineState->_vocabulary->getKernelNamesSize(); seeker++) { - DebugPrintf("%03x: %20s | ", seeker, g_EngineState->_vocabulary->getKernelName(seeker).c_str()); + for (uint seeker = 0; seeker < g_EngineState->_kernel->getKernelNamesSize(); seeker++) { + DebugPrintf("%03x: %20s | ", seeker, g_EngineState->_kernel->getKernelName(seeker).c_str()); if ((seeker % 3) == 2) DebugPrintf("\n"); } @@ -221,7 +221,7 @@ bool Console::cmdDissectScript(int argc, const char **argv) { return true; } - g_EngineState->_vocabulary->dissectScript(atoi(argv[1])); + g_EngineState->_kernel->dissectScript(atoi(argv[1]), g_EngineState->_vocabulary); return true; } |