aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2009-08-31 20:09:36 +0000
committerFilippos Karapetis2009-08-31 20:09:36 +0000
commit186267a302694b10983337ef09aadf17d87e41c9 (patch)
tree5ba074cd8e628f4a394e964493f12d0ccb703684 /engines
parent1d6f946ba759e8c93e841963660ac933ed06d48a (diff)
downloadscummvm-rg350-186267a302694b10983337ef09aadf17d87e41c9.tar.gz
scummvm-rg350-186267a302694b10983337ef09aadf17d87e41c9.tar.bz2
scummvm-rg350-186267a302694b10983337ef09aadf17d87e41c9.zip
Some adjustments to the output of the "selector" and "selectors" console commands
svn-id: r43858
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/console.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp
index d63eca23e4..c05b088eab 100644
--- a/engines/sci/console.cpp
+++ b/engines/sci/console.cpp
@@ -425,7 +425,7 @@ bool Console::cmdSelector(int argc, const char **argv) {
for (uint seeker = 0; seeker < _vm->getKernel()->getSelectorNamesSize(); seeker++) {
if (!scumm_stricmp(_vm->getKernel()->getSelectorName(seeker).c_str(), argv[1])) {
- DebugPrintf("Selector %s found at %03x\n", _vm->getKernel()->getSelectorName(seeker).c_str(), seeker);
+ DebugPrintf("Selector %s found at %03x (%d)\n", _vm->getKernel()->getSelectorName(seeker).c_str(), seeker, seeker);
return true;
}
}
@@ -437,8 +437,13 @@ bool Console::cmdSelector(int argc, const char **argv) {
bool Console::cmdSelectors(int argc, const char **argv) {
DebugPrintf("Selector names in numeric order:\n");
+ Common::String selectorName;
for (uint seeker = 0; seeker < _vm->getKernel()->getSelectorNamesSize(); seeker++) {
- DebugPrintf("%03x: %20s | ", seeker, _vm->getKernel()->getSelectorName(seeker).c_str());
+ selectorName = _vm->getKernel()->getSelectorName(seeker);
+ if (selectorName != "BAD SELECTOR")
+ DebugPrintf("%03x: %20s | ", seeker, selectorName.c_str());
+ else
+ continue;
if ((seeker % 3) == 2)
DebugPrintf("\n");
}