DIRECTOR: Add 'console' debug flag

This commit is contained in:
Scott Percival
2022-10-22 19:53:22 +02:00
committed by Eugene Sandulenko
parent c2c9d77fc4
commit 4ec70de496
3 changed files with 7 additions and 0 deletions
+1
View File
@@ -50,6 +50,7 @@ static const DebugChannelDef debugFlagList[] = {
{Director::kDebug32bpp, "32bpp", "Work in 32bpp mode"},
{Director::kDebugCompile, "compile", "Lingo Compilation"},
{Director::kDebugCompileOnly, "compileonly", "Skip Lingo code execution"},
{Director::kDebugConsole, "console", "Open the debug console"},
{Director::kDebugDesktop, "desktop", "Show the Classic Mac desktop"},
{Director::kDebugEndVideo, "endvideo", "Fake that the end of video is reached setting"},
{Director::kDebugEvents, "events", "Event processing"},
+5
View File
@@ -229,6 +229,11 @@ Common::Error DirectorEngine::run() {
if (err.getCode() != Common::kNoError)
return err;
if (debugChannelSet(-1, kDebugConsole)) {
g_debugger->attach();
g_system->updateScreen();
}
bool loop = true;
while (loop) {
+1
View File
@@ -88,6 +88,7 @@ enum {
kDebugEndVideo = 1 << 17,
kDebugLingoStrict = 1 << 18,
kDebugSound = 1 << 19,
kDebugConsole = 1 << 20,
};
struct MovieReference {