mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
DIRECTOR: Add 'console' debug flag
This commit is contained in:
committed by
Eugene Sandulenko
parent
c2c9d77fc4
commit
4ec70de496
@@ -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"},
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -88,6 +88,7 @@ enum {
|
||||
kDebugEndVideo = 1 << 17,
|
||||
kDebugLingoStrict = 1 << 18,
|
||||
kDebugSound = 1 << 19,
|
||||
kDebugConsole = 1 << 20,
|
||||
};
|
||||
|
||||
struct MovieReference {
|
||||
|
||||
Reference in New Issue
Block a user