[Scummvm-git-logs] scummvm master -> 237a3674a0982127d8357e69332801c3499cd65b

sev- sev at scummvm.org
Mon Aug 17 23:34:56 UTC 2020


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:
237a3674a0 DIRECTOR: Fix fallback detection for triple-digit version numbers


Commit: 237a3674a0982127d8357e69332801c3499cd65b
    https://github.com/scummvm/scummvm/commit/237a3674a0982127d8357e69332801c3499cd65b
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2020-08-18T01:34:44+02:00

Commit Message:
DIRECTOR: Fix fallback detection for triple-digit version numbers

Changed paths:
    engines/director/detection.cpp


diff --git a/engines/director/detection.cpp b/engines/director/detection.cpp
index 9f238bda8f..26e6ef52c3 100644
--- a/engines/director/detection.cpp
+++ b/engines/director/detection.cpp
@@ -314,13 +314,13 @@ ADDetectedGame DirectorMetaEngine::fallbackDetect(const FileMap &allFiles, const
 		switch (tag) {
 		case MKTAG('P', 'J', '9', '3'):
 		case MKTAG('3', '9', 'J', 'P'):
-			desc->version = 4;
+			desc->version = 400;
 			break;
 		case MKTAG('P', 'J', '9', '5'):
-			desc->version = 5;
+			desc->version = 500;
 			break;
 		case MKTAG('P', 'J', '0', '0'):
-			desc->version = 7;
+			desc->version = 700;
 			break;
 		default:
 			// Prior to version 4, there was no tag here. So we'll use a bit of a
@@ -353,7 +353,7 @@ ADDetectedGame DirectorMetaEngine::fallbackDetect(const FileMap &allFiles, const
 				continue;
 
 			// Assume v3 at this point (for now at least)
-			desc->version = 3;
+			desc->version = 300;
 		}
 
 		strncpy(s_fallbackFileNameBuffer, fileName.c_str(), 50);




More information about the Scummvm-git-logs mailing list