From b22524ef575d54c1f5569891f6b148e5f51e8681 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 19 Dec 2018 00:15:18 +0100 Subject: BLADERUNNER: Print scene name in 'scene' debug command --- engines/bladerunner/debugger.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/bladerunner/debugger.cpp b/engines/bladerunner/debugger.cpp index eb188b3ede..902c0d79f0 100644 --- a/engines/bladerunner/debugger.cpp +++ b/engines/bladerunner/debugger.cpp @@ -432,7 +432,15 @@ bool Debugger::cmdScene(int argc, const char **argv) { return false; } - debugPrintf("chapter = %i\nset = %i\nscene = %i\n", _vm->_settings->getChapter(), _vm->_scene->getSetId(), _vm->_scene->getSceneId()); + uint i; + for (i = 0; sceneList[i].chapter != 0; i++) { + if (sceneList[i].chapter == _vm->_settings->getChapter() && sceneList[i].set == _vm->_scene->getSetId() + && sceneList[i].scene == _vm->_scene->getSceneId()) + break; + } + + debugPrintf("chapter = %i\nset = %i\nscene = %i '%s'\n", _vm->_settings->getChapter(), _vm->_scene->getSetId(), + _vm->_scene->getSceneId(), sceneList[i].name); return true; } -- cgit v1.2.3