[Scummvm-git-logs] scummvm master -> a725e75f399e8673eb24ec0dcaa95537b1db29f4
sev-
noreply at scummvm.org
Tue Oct 14 00:18:42 UTC 2025
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
a725e75f39 DIRECTOR: LINGO: Implement 'the cpuHogTicks'
Commit: a725e75f399e8673eb24ec0dcaa95537b1db29f4
https://github.com/scummvm/scummvm/commit/a725e75f399e8673eb24ec0dcaa95537b1db29f4
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2025-10-14T02:17:55+02:00
Commit Message:
DIRECTOR: LINGO: Implement 'the cpuHogTicks'
used in melements in initial setup.
No-op for ScummVM
Changed paths:
engines/director/lingo/lingo-the.cpp
engines/director/lingo/lingo-the.h
diff --git a/engines/director/lingo/lingo-the.cpp b/engines/director/lingo/lingo-the.cpp
index 7554fc8baa6..14f0b894fe7 100644
--- a/engines/director/lingo/lingo-the.cpp
+++ b/engines/director/lingo/lingo-the.cpp
@@ -67,6 +67,7 @@ TheEntity entities[] = { // hasId ver. isFunction
{ kTheColorQD, "colorQD", false, 200, true }, // D2 f
{ kTheCommandDown, "commandDown", false, 200, true }, // D2 f
{ kTheControlDown, "controlDown", false, 200, true }, // D2 f
+ { kTheCpuHogTicks, "cpuHogTicks", false, 400, true }, // D4 p, documented in D6
{ kTheCurrentSpriteNum, "currentSpriteNum", false, 600, true }, // D6 p
{ kTheDate, "date", false, 300, true }, // D3 f
{ kTheDeskTopRectList, "deskTopRectList", false, 500, true }, // D5 p
@@ -593,6 +594,11 @@ Datum Lingo::getTheEntity(int entity, Datum &id, int field) {
case kTheControlDown:
d = (movie->_keyFlags & Common::KBD_CTRL) ? 1 : 0;
break;
+ case kTheCpuHogTicks:
+ // Mac-onlym specifies how often Director yeilds to other applications.
+ // Default is 20 ticks (1/3 second)
+ d = 20;
+ break;
case kTheCurrentSpriteNum:
d = (int)movie->_currentSpriteNum;
break;
@@ -1238,6 +1244,10 @@ void Lingo::setTheEntity(int entity, Datum &id, int field, Datum &d) {
// bpp. 1, 2, 4, 8, 32
warning("STUB: Lingo::setTheEntity(): Set color depth to %d", _vm->_colorDepth);
break;
+ case kTheCpuHogTicks:
+ // We do not need to do anything special to yield to other applications
+ // so, ignore this setting
+ break;
case kTheExitLock:
g_lingo->_exitLock = bool(d.asInt());
break;
diff --git a/engines/director/lingo/lingo-the.h b/engines/director/lingo/lingo-the.h
index e43305c60d1..58fe71e5f85 100644
--- a/engines/director/lingo/lingo-the.h
+++ b/engines/director/lingo/lingo-the.h
@@ -48,6 +48,7 @@ enum TheEntityType {
kTheColorQD,
kTheCommandDown,
kTheControlDown,
+ kTheCpuHogTicks,
kTheCurrentSpriteNum,
kTheDate,
kTheDeskTopRectList,
More information about the Scummvm-git-logs
mailing list