[Scummvm-git-logs] scummvm master -> 5282e1dba8473b120a2c37f789e0c1f662fdecb1

rvanlaar noreply at scummvm.org
Thu Sep 8 18:31:54 UTC 2022


This automated email contains information about 2 new commits which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
f65c022cc3 DIRECTOR: LINGO: XOBJ: MoovXOBJ: higher debuglevel
5282e1dba8 DIRECTOR: LINGO: Add ran frame message


Commit: f65c022cc34c28fd679ad18746e5c27c97332c78
    https://github.com/scummvm/scummvm/commit/f65c022cc34c28fd679ad18746e5c27c97332c78
Author: Roland van Laar (roland at rolandvanlaar.nl)
Date: 2022-09-08T20:31:27+02:00

Commit Message:
DIRECTOR: LINGO: XOBJ: MoovXOBJ: higher debuglevel

Set debug level higher for fondler and movieDone to have less clutter
on the regular level 5.
Those two functions are called over and over while the movie isn't done.

Changed paths:
    engines/director/lingo/xlibs/moovxobj.cpp


diff --git a/engines/director/lingo/xlibs/moovxobj.cpp b/engines/director/lingo/xlibs/moovxobj.cpp
index 584559e0980..a8c18fdb7bd 100644
--- a/engines/director/lingo/xlibs/moovxobj.cpp
+++ b/engines/director/lingo/xlibs/moovxobj.cpp
@@ -142,7 +142,7 @@ void MoovXObj::m_movieKill(int nargs) {
 void MoovXObj::m_fondler(int nargs) {
 	MoovXObject *me = static_cast<MoovXObject *>(g_lingo->_currentMe.u.obj);
 
-	debug(5, "MoovXObj::m_fondler");
+	debug(10, "MoovXObj::m_fondler");
 	Graphics::Surface const *frame;
 
 	if (me->_video && me->_video->needsUpdate()) {
@@ -192,7 +192,7 @@ void MoovXObj::m_stopMovie(int nargs) {
 
 void MoovXObj::m_movieDone(int nargs) {
 	MoovXObject *me = static_cast<MoovXObject *>(g_lingo->_currentMe.u.obj);
-	debug(5, "MoovXObj::m_movieDone");
+	debug(10, "MoovXObj::m_movieDone");
 	bool result = (me->_video && !me->_video->endOfVideo());
 	g_lingo->push(result);
 }


Commit: 5282e1dba8473b120a2c37f789e0c1f662fdecb1
    https://github.com/scummvm/scummvm/commit/5282e1dba8473b120a2c37f789e0c1f662fdecb1
Author: Roland van Laar (roland at rolandvanlaar.nl)
Date: 2022-09-08T20:31:27+02:00

Commit Message:
DIRECTOR: LINGO: Add ran frame message

b_updateStage updates the framesRan counter while using the
fewframesonly debug flag. With a message in place we can track
the state and where the framesRan counter was updated.

Changed paths:
    engines/director/lingo/lingo-builtins.cpp


diff --git a/engines/director/lingo/lingo-builtins.cpp b/engines/director/lingo/lingo-builtins.cpp
index 6470c5ddf09..b866fae79ae 100644
--- a/engines/director/lingo/lingo-builtins.cpp
+++ b/engines/director/lingo/lingo-builtins.cpp
@@ -2605,6 +2605,7 @@ void LB::b_updateStage(int nargs) {
 
 	if (debugChannelSet(-1, kDebugFewFramesOnly)) {
 		score->_framesRan++;
+			warning("LB::b_updateStage(): ran frame %0d", score->_framesRan);
 
 		if (score->_framesRan > 9) {
 			warning("b_updateStage(): exiting due to debug few frames only");




More information about the Scummvm-git-logs mailing list