diff options
author | Thanasis Antoniou | 2019-05-29 12:07:55 +0300 |
---|---|---|
committer | Thanasis Antoniou | 2019-05-29 12:08:24 +0300 |
commit | b7e1f8a9ffa0d068536ac5b6319f49ec22a3247d (patch) | |
tree | 8b489a2142b7eb301369fd56e43f6950dd31aa65 /engines/bladerunner/debugger.cpp | |
parent | 04d7f72bf79f3acc3975299e79d5b65c24f43f39 (diff) | |
download | scummvm-rg350-b7e1f8a9ffa0d068536ac5b6319f49ec22a3247d.tar.gz scummvm-rg350-b7e1f8a9ffa0d068536ac5b6319f49ec22a3247d.tar.bz2 scummvm-rg350-b7e1f8a9ffa0d068536ac5b6319f49ec22a3247d.zip |
BLADERUNNER: Support for displaying subtitles info
Diffstat (limited to 'engines/bladerunner/debugger.cpp')
-rw-r--r-- | engines/bladerunner/debugger.cpp | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/engines/bladerunner/debugger.cpp b/engines/bladerunner/debugger.cpp index 633df5eff5..f22f924321 100644 --- a/engines/bladerunner/debugger.cpp +++ b/engines/bladerunner/debugger.cpp @@ -1284,8 +1284,21 @@ bool Debugger::cmdSubtitle(int argc, const char **argv) { if (argc != 2) { invalidSyntax = true; } else { + if (!_vm->_subtitles->isSystemActive()) { + debugPrintf("Subtitles system is currently disabled\n"); + } + Common::String subtitleText = argv[1]; - if (subtitleText == "reset") { + if (subtitleText == "info") { + debugPrintf("Subtitles version info: v%s (%s) %s by: %s\n", + _vm->_subtitles->getSubtitlesInfo().versionStr.c_str(), + _vm->_subtitles->getSubtitlesInfo().dateOfCompile.c_str(), + _vm->_subtitles->getSubtitlesInfo().languageMode.c_str(), + _vm->_subtitles->getSubtitlesInfo().credits.c_str()); + debugPrintf("Subtitles fonts loaded: %s\n", + _vm->_subtitles->isSubsFontsLoaded()? "True":"False"); + + } else if (subtitleText == "reset") { _vm->_subtitles->setGameSubsText("", false); } else { debugPrintf("Showing text: %s\n", subtitleText.c_str()); @@ -1295,9 +1308,9 @@ bool Debugger::cmdSubtitle(int argc, const char **argv) { } if (invalidSyntax) { - debugPrintf("Show specified text as subtitle or clear the current subtitle (with the reset option).\n"); + debugPrintf("Show subtitles info, or display and clear (reset) a specified text as subtitle or clear the current subtitle.\n"); debugPrintf("Use double quotes to encapsulate the text.\n"); - debugPrintf("Usage: %s (\"<text_to_display>\" | reset)\n", argv[0]); + debugPrintf("Usage: %s (\"<text_to_display>\" | info | reset)\n", argv[0]); } return true; |