[Scummvm-git-logs] scummvm master -> 9cfa8bb1af030434a2c371da30d6d5162007b711

sev- noreply at scummvm.org
Fri Feb 17 18:35:51 UTC 2023


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:
9cfa8bb1af DIRECTOR: Let developers launch any movies at will


Commit: 9cfa8bb1af030434a2c371da30d6d5162007b711
    https://github.com/scummvm/scummvm/commit/9cfa8bb1af030434a2c371da30d6d5162007b711
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2023-02-17T19:34:50+01:00

Commit Message:
DIRECTOR: Let developers launch any movies at will

Now you may run as following

  ./scummvm -p /path/to/game --start-movie=movie.dir director

and ScummVM will report it as a director game and will let the user
launch it.

However, at this moment there is no way to determine Director file
version and we report Director v0.

Changed paths:
    engines/director/detection.cpp


diff --git a/engines/director/detection.cpp b/engines/director/detection.cpp
index 379942cfe7f..c2cdd89c68b 100644
--- a/engines/director/detection.cpp
+++ b/engines/director/detection.cpp
@@ -23,6 +23,7 @@
 
 #include "engines/advancedDetector.h"
 
+#include "common/config-manager.h"
 #include "common/file.h"
 #include "common/formats/winexe.h"
 
@@ -293,6 +294,11 @@ ADDetectedGame DirectorMetaEngineDetection::fallbackDetect(const FileMap &allFil
 		return game;
 	}
 
+	// Now, if we have --start-movie supplied, let's consider that
+	// the developer knows what they're doing and report Director game
+	if (ConfMan.hasKey("start_movie"))
+		return ADDetectedGame(&desc->desc);
+
 	return ADDetectedGame();
 }
 




More information about the Scummvm-git-logs mailing list