diff options
author | Nicola Mettifogo | 2007-05-13 12:41:42 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-05-13 12:41:42 +0000 |
commit | 09c816e69555a1cd6f8034458440754533fe492b (patch) | |
tree | 8d6d2274b7471785c53b3fa3c1f9a536896aea4e /engines | |
parent | 7c79fe5bce06e63f64e70461f073c54a1cb9f698 (diff) | |
download | scummvm-rg350-09c816e69555a1cd6f8034458440754533fe492b.tar.gz scummvm-rg350-09c816e69555a1cd6f8034458440754533fe492b.tar.bz2 scummvm-rg350-09c816e69555a1cd6f8034458440754533fe492b.zip |
New debug messages.
svn-id: r26832
Diffstat (limited to 'engines')
-rw-r--r-- | engines/parallaction/animation.cpp | 2 | ||||
-rw-r--r-- | engines/parallaction/graphics.cpp | 4 | ||||
-rw-r--r-- | engines/parallaction/menu.cpp | 1 | ||||
-rw-r--r-- | engines/parallaction/parallaction.cpp | 11 | ||||
-rw-r--r-- | engines/parallaction/parallaction.h | 3 |
5 files changed, 15 insertions, 6 deletions
diff --git a/engines/parallaction/animation.cpp b/engines/parallaction/animation.cpp index 1b8752bab3..b2097c15d8 100644 --- a/engines/parallaction/animation.cpp +++ b/engines/parallaction/animation.cpp @@ -465,7 +465,7 @@ void jobRunScripts(void *parm, Job *j) { while (((*inst)->_index != INST_SHOW) && (a->_flags & kFlagsActing)) { - debugC(1, kDebugJobs, "Animation: %s, instruction: %s", a->_label._text, (*inst)->_index == INST_END ? "end" : _instructionNamesRes[(*inst)->_index - 1]); + debugC(9, kDebugJobs, "Animation: %s, instruction: %s", a->_label._text, (*inst)->_index == INST_END ? "end" : _instructionNamesRes[(*inst)->_index - 1]); switch ((*inst)->_index) { case INST_ENDLOOP: // endloop diff --git a/engines/parallaction/graphics.cpp b/engines/parallaction/graphics.cpp index f09f337cf4..ef9f24c472 100644 --- a/engines/parallaction/graphics.cpp +++ b/engines/parallaction/graphics.cpp @@ -412,7 +412,7 @@ void Gfx::blit(const Common::Rect& r, uint16 z, byte *data, Gfx::Buffers buffer) void jobDisplayLabel(void *parm, Job *j) { Label *label = (Label*)parm; - debugC(1, kDebugJobs, "jobDisplayLabel (%p)", (const void*) label); + debugC(9, kDebugJobs, "jobDisplayLabel (%p)", (const void*) label); if (label->_cnv._width == 0) return; @@ -424,7 +424,7 @@ void jobDisplayLabel(void *parm, Job *j) { void jobEraseLabel(void *parm, Job *j) { Label *label = (Label*)parm; - debugC(1, kDebugJobs, "jobEraseLabel (%p)", (const void*) label); + debugC(9, kDebugJobs, "jobEraseLabel (%p)", (const void*) label); int16 _si, _di; diff --git a/engines/parallaction/menu.cpp b/engines/parallaction/menu.cpp index 74d5b07827..485c373bf8 100644 --- a/engines/parallaction/menu.cpp +++ b/engines/parallaction/menu.cpp @@ -294,6 +294,7 @@ uint16 Menu::selectGame() { // character selection and protection // void Menu::selectCharacter() { + debugC(1, kDebugMenu, "Menu::selectCharacter()"); uint16 _di = 0; bool askPassword = true; diff --git a/engines/parallaction/parallaction.cpp b/engines/parallaction/parallaction.cpp index 9e134baf9e..2a93065eff 100644 --- a/engines/parallaction/parallaction.cpp +++ b/engines/parallaction/parallaction.cpp @@ -121,7 +121,7 @@ Parallaction::Parallaction(OSystem *syst) : Common::addSpecialDebugLevel(kDebugJobs, "jobs", "Jobs debug level"); Common::addSpecialDebugLevel(kDebugInput, "input", "Input debug level"); Common::addSpecialDebugLevel(kDebugAudio, "audio", "Audio debug level"); - + Common::addSpecialDebugLevel(kDebugMenu, "menu", "Menu debug level"); } @@ -788,6 +788,7 @@ int compareJobPriority(const JobPointer &j1, const JobPointer &j2) { } Job *Parallaction::addJob(JobFn fn, void *parm, uint16 tag) { + debugC(3, kDebugJobs, "addJob(%i)", tag); Job *v8 = new Job; @@ -803,16 +804,22 @@ Job *Parallaction::addJob(JobFn fn, void *parm, uint16 tag) { } void Parallaction::removeJob(Job *j) { + debugC(3, kDebugJobs, "addJob(%i)", j->_tag); + j->_finished = 1; return; } void Parallaction::pauseJobs() { + debugC(3, kDebugJobs, "pausing jobs execution"); + _engineFlags |= kEnginePauseJobs; return; } void Parallaction::resumeJobs() { + debugC(3, kDebugJobs, "resuming jobs execution"); + _engineFlags &= ~kEnginePauseJobs; return; } @@ -831,7 +838,7 @@ void Parallaction::runJobs() { it = _jobs.begin(); while (it != _jobs.end()) { - debugC(3, kDebugJobs, "runJobs: %i", (*it)->_tag); + debugC(9, kDebugJobs, "runJobs: %i", (*it)->_tag); (*(*it)->_fn)((*it)->_parm, (*it)); it++; } diff --git a/engines/parallaction/parallaction.h b/engines/parallaction/parallaction.h index 554dcb6869..022a7e3d1b 100644 --- a/engines/parallaction/parallaction.h +++ b/engines/parallaction/parallaction.h @@ -52,7 +52,8 @@ enum { kDebugGraphics = 1 << 4, kDebugJobs = 1 << 5, kDebugInput = 1 << 6, - kDebugAudio = 1 << 7 + kDebugAudio = 1 << 7, + kDebugMenu = 1 << 8 }; enum { |