[Scummvm-git-logs] scummvm master -> 29a2c78000e27f7cfe9fb0384f8a04f6c4fed0bb

elasota noreply at scummvm.org
Thu Jul 21 23:42:37 UTC 2022


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

Summary:
29a2c78000 MTROPOLIS: Stub "flushpriority" attribute


Commit: 29a2c78000e27f7cfe9fb0384f8a04f6c4fed0bb
    https://github.com/scummvm/scummvm/commit/29a2c78000e27f7cfe9fb0384f8a04f6c4fed0bb
Author: elasota (ejlasota at gmail.com)
Date: 2022-07-21T19:42:14-04:00

Commit Message:
MTROPOLIS: Stub "flushpriority" attribute

Changed paths:
    engines/mtropolis/runtime.cpp
    engines/mtropolis/runtime.h


diff --git a/engines/mtropolis/runtime.cpp b/engines/mtropolis/runtime.cpp
index cf56fdc93c4..a9ad04109e5 100644
--- a/engines/mtropolis/runtime.cpp
+++ b/engines/mtropolis/runtime.cpp
@@ -2618,7 +2618,7 @@ void StructuralHooks::onSetPosition(Structural *structural, Common::Point &pt) {
 ProjectPresentationSettings::ProjectPresentationSettings() : width(640), height(480), bitsPerPixel(8) {
 }
 
-Structural::Structural() : _parent(nullptr), _paused(false), _loop(false) {
+Structural::Structural() : _parent(nullptr), _paused(false), _loop(false), _flushPriority(0) {
 }
 
 Structural::~Structural() {
@@ -2736,6 +2736,9 @@ bool Structural::readAttribute(MiniscriptThread *thread, DynamicValue &result, c
 		else
 			result.clear();
 		return true;
+	} else if (attrib == "flushpriority") {
+		result.setInt(_flushPriority);
+		return true;
 	}
 
 	// Traverse children (modifiers must be first)
@@ -2807,6 +2810,9 @@ MiniscriptInstructionOutcome Structural::writeRefAttribute(MiniscriptThread *thr
 	} else if (attrib == "debug") {
 		DynamicValueWriteFuncHelper<Structural, &Structural::scriptSetDebug>::create(this, result);
 		return kMiniscriptInstructionOutcomeContinue;
+	} else if (attrib == "flushpriority") {
+		DynamicValueWriteIntegerHelper<int32>::create(&_flushPriority, result);
+		return kMiniscriptInstructionOutcomeContinue;
 	}
 
 	// Attempt to resolve as a child object
diff --git a/engines/mtropolis/runtime.h b/engines/mtropolis/runtime.h
index 8c4dd9f0b11..0920532a01a 100644
--- a/engines/mtropolis/runtime.h
+++ b/engines/mtropolis/runtime.h
@@ -2042,6 +2042,8 @@ protected:
 	// being available for sound indexes to be properly set up.
 	bool _loop;
 
+	int32 _flushPriority;
+
 	Common::SharedPtr<StructuralHooks> _hooks;
 };
 




More information about the Scummvm-git-logs mailing list