[Scummvm-git-logs] scummvm master -> d5736d397fda57aae941fb3277e752b2182faa8c

aquadran noreply at scummvm.org
Tue Jul 28 05:29:00 UTC 2026


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:
d5736d397f WINTERMUTE: Added 'QueryWindow' method for 'JULIA - Among the Stars'


Commit: d5736d397fda57aae941fb3277e752b2182faa8c
    https://github.com/scummvm/scummvm/commit/d5736d397fda57aae941fb3277e752b2182faa8c
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2026-07-28T07:28:47+02:00

Commit Message:
WINTERMUTE: Added 'QueryWindow' method for 'JULIA - Among the Stars'

Changed paths:
    engines/wintermute/ad/ad_game.cpp


diff --git a/engines/wintermute/ad/ad_game.cpp b/engines/wintermute/ad/ad_game.cpp
index b176cfb4919..45d242369d1 100644
--- a/engines/wintermute/ad/ad_game.cpp
+++ b/engines/wintermute/ad/ad_game.cpp
@@ -534,6 +534,24 @@ bool AdGame::scCallMethod(ScScript *script, ScStack *stack, ScStack *thisStack,
 		return STATUS_OK;
 	}
 
+	//////////////////////////////////////////////////////////////////////////
+	// QueryWindow
+	//////////////////////////////////////////////////////////////////////////
+	else if (strcmp(name, "QueryWindow") == 0) {
+		stack->correctParams(1);
+		const char *findName = stack->pop()->getString();
+		for (int32 i = 0; i < _windows.getSize(); i++) {
+			if (scumm_stricmp(_windows[i]->_name, findName) == 0) {
+				stack->pushNative(_windows[i], true);
+				return STATUS_OK;
+			}
+		}
+
+		stack->pushNULL();
+
+		return STATUS_OK;
+	}
+
 	//////////////////////////////////////////////////////////////////////////
 	// QueryItem
 	//////////////////////////////////////////////////////////////////////////




More information about the Scummvm-git-logs mailing list