[Scummvm-cvs-logs] SF.net SVN: scummvm: [26832] scummvm/trunk/engines/parallaction
peres001 at users.sourceforge.net
peres001 at users.sourceforge.net
Sun May 13 14:41:43 CEST 2007
Revision: 26832
http://scummvm.svn.sourceforge.net/scummvm/?rev=26832&view=rev
Author: peres001
Date: 2007-05-13 05:41:42 -0700 (Sun, 13 May 2007)
Log Message:
-----------
New debug messages.
Modified Paths:
--------------
scummvm/trunk/engines/parallaction/animation.cpp
scummvm/trunk/engines/parallaction/graphics.cpp
scummvm/trunk/engines/parallaction/menu.cpp
scummvm/trunk/engines/parallaction/parallaction.cpp
scummvm/trunk/engines/parallaction/parallaction.h
Modified: scummvm/trunk/engines/parallaction/animation.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/animation.cpp 2007-05-13 12:40:45 UTC (rev 26831)
+++ scummvm/trunk/engines/parallaction/animation.cpp 2007-05-13 12:41:42 UTC (rev 26832)
@@ -465,7 +465,7 @@
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
Modified: scummvm/trunk/engines/parallaction/graphics.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/graphics.cpp 2007-05-13 12:40:45 UTC (rev 26831)
+++ scummvm/trunk/engines/parallaction/graphics.cpp 2007-05-13 12:41:42 UTC (rev 26832)
@@ -412,7 +412,7 @@
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 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;
Modified: scummvm/trunk/engines/parallaction/menu.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/menu.cpp 2007-05-13 12:40:45 UTC (rev 26831)
+++ scummvm/trunk/engines/parallaction/menu.cpp 2007-05-13 12:41:42 UTC (rev 26832)
@@ -294,6 +294,7 @@
// character selection and protection
//
void Menu::selectCharacter() {
+ debugC(1, kDebugMenu, "Menu::selectCharacter()");
uint16 _di = 0;
bool askPassword = true;
Modified: scummvm/trunk/engines/parallaction/parallaction.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/parallaction.cpp 2007-05-13 12:40:45 UTC (rev 26831)
+++ scummvm/trunk/engines/parallaction/parallaction.cpp 2007-05-13 12:41:42 UTC (rev 26832)
@@ -121,7 +121,7 @@
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 @@
}
Job *Parallaction::addJob(JobFn fn, void *parm, uint16 tag) {
+ debugC(3, kDebugJobs, "addJob(%i)", tag);
Job *v8 = new Job;
@@ -803,16 +804,22 @@
}
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 @@
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++;
}
Modified: scummvm/trunk/engines/parallaction/parallaction.h
===================================================================
--- scummvm/trunk/engines/parallaction/parallaction.h 2007-05-13 12:40:45 UTC (rev 26831)
+++ scummvm/trunk/engines/parallaction/parallaction.h 2007-05-13 12:41:42 UTC (rev 26832)
@@ -52,7 +52,8 @@
kDebugGraphics = 1 << 4,
kDebugJobs = 1 << 5,
kDebugInput = 1 << 6,
- kDebugAudio = 1 << 7
+ kDebugAudio = 1 << 7,
+ kDebugMenu = 1 << 8
};
enum {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list