[Scummvm-git-logs] scummvm master -> 666b2dee5ed08abf416fdcf603598cbaf163f1bb

tag2015 noreply at scummvm.org
Sat Apr 15 11:01:26 UTC 2023


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:
9201d38847 GLK: AGT: Fix condition in detector
666b2dee5e GLK: AGT: Add alandria and fix wanderer1 hash


Commit: 9201d388477e1f819989da9235a26a9353b4d417
    https://github.com/scummvm/scummvm/commit/9201d388477e1f819989da9235a26a9353b4d417
Author: Walter Agazzi (walter.agazzi at protonmail.com)
Date: 2023-04-15T12:56:33+02:00

Commit Message:
GLK: AGT: Fix condition in detector

The detector should iterate until a match for both md5 and size is found.
Prevents misdetection of alandria and wanderer1 which have the same
filesize.

Changed paths:
    engines/glk/agt/detection.cpp


diff --git a/engines/glk/agt/detection.cpp b/engines/glk/agt/detection.cpp
index 7a03747b9e9..01ffbfc8a98 100644
--- a/engines/glk/agt/detection.cpp
+++ b/engines/glk/agt/detection.cpp
@@ -62,7 +62,7 @@ bool AGTMetaEngine::detectGames(const Common::FSList &fslist, DetectedGames &gam
 
 		// Scan through the AGT game list for a match
 		const GlkDetectionEntry *p = AGT_GAMES;
-		while (p->_md5 && p->_filesize != filesize && md5 != p->_md5)
+		while (p->_md5 && ((p->_filesize != filesize) || (md5 != p->_md5)))
 			++p;
 
 		if (!p->_gameId) {


Commit: 666b2dee5ed08abf416fdcf603598cbaf163f1bb
    https://github.com/scummvm/scummvm/commit/666b2dee5ed08abf416fdcf603598cbaf163f1bb
Author: Walter Agazzi (walter.agazzi at protonmail.com)
Date: 2023-04-15T12:58:11+02:00

Commit Message:
GLK: AGT: Add alandria and fix wanderer1 hash

Changed paths:
    engines/glk/agt/detection_tables.h


diff --git a/engines/glk/agt/detection_tables.h b/engines/glk/agt/detection_tables.h
index 391cff19632..372b92b2223 100644
--- a/engines/glk/agt/detection_tables.h
+++ b/engines/glk/agt/detection_tables.h
@@ -155,6 +155,7 @@ const PlainGameDescriptor AGT_GAME_LIST[] = {
 
 const GlkDetectionEntry AGT_GAMES[] = {
 	DT_ENTRY0("abloodylife", "c492e0ae0647d3a4835012ca864b99d5", 157221),
+	DT_ENTRY0("alandria", "0dcaff32c55dd2c1898da7893500de34", 53946),
 	DT_ENTRY0("alchemistcastle", "7822dfaf1ae31b3e508e7b0a267d054b", 192051),
 	DT_ENTRY0("advalice", "0aaafb897b46baa28023bbbaf4091fd8", 23004),
 	DT_ENTRY0("apprenticetesting", "4e4244649dc1cd39546f3d10dc85acb5", 131868),
@@ -264,7 +265,7 @@ const GlkDetectionEntry AGT_GAMES[] = {
 	DT_ENTRY0("tossedintospace", "515f06782c5b11108a719a20e182166c", 49491),
 	DT_ENTRY0("timesquared", "55e36771d5e1fe184cce8f5be666ff9f", 105300),
 	DT_ENTRY0("folkestone", "7e949a7376b0a64cee0d9412b0203611", 64557),
-	DT_ENTRY0("wanderer1", "0dcaff32c55dd2c1898da7893500de34", 53946),
+	DT_ENTRY0("wanderer1", "e1d707c9deaf02a4b28c9041a4009cb6", 53946),
 	DT_ENTRY0("wanderer2", "89dd16629022c75f3ffc171a6b126da6", 46980),
 	DT_ENTRY0("wanderer3", "839ab34bce5c82ec6194675f0186b15b", 45765),
 	DT_ENTRY0("weekendsurvival", "e770c0e75b7257eae9d4677340beca10", 91044),




More information about the Scummvm-git-logs mailing list