[Scummvm-git-logs] scummvm master -> 602d68628688ccfcdd20aa73ef5f5ec2c32603a3

sev- noreply at scummvm.org
Sun Dec 25 09:09:00 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:
602d686286 HPL1: Remove another redundant detection entry, fixed detection table


Commit: 602d68628688ccfcdd20aa73ef5f5ec2c32603a3
    https://github.com/scummvm/scummvm/commit/602d68628688ccfcdd20aa73ef5f5ec2c32603a3
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2022-12-25T10:08:33+01:00

Commit Message:
HPL1: Remove another redundant detection entry, fixed detection table

Changed paths:
    engines/hpl1/detection.cpp
    engines/hpl1/detection.h
    engines/hpl1/detection_tables.h


diff --git a/engines/hpl1/detection.cpp b/engines/hpl1/detection.cpp
index b1a3d7cbf73..5806a1bc758 100644
--- a/engines/hpl1/detection.cpp
+++ b/engines/hpl1/detection.cpp
@@ -46,17 +46,4 @@ Hpl1MetaEngineDetection::Hpl1MetaEngineDetection() : AdvancedMetaEngineDetection
 	sizeof(ADGameDescription), Hpl1::GAME_NAMES) {
 }
 
-DetectedGames Hpl1MetaEngineDetection::detectGames(const Common::FSList &fslist, uint32 skipADFlags, bool skipIncomplete) {
-	DetectedGames games;
-	for(auto file : fslist) {
-		if (file.getName() == "Penumbra.exe")
-			games.push_back(DetectedGame(getName(), Hpl1::GAME_NAMES[0]));
-	}
-	return games;
-}
-
-PlainGameList Hpl1MetaEngineDetection::getSupportedGames() const {
-	return PlainGameList(Hpl1::GAME_NAMES);
-}
-
 REGISTER_PLUGIN_STATIC(HPL1_DETECTION, PLUGIN_TYPE_ENGINE_DETECTION, Hpl1MetaEngineDetection);
diff --git a/engines/hpl1/detection.h b/engines/hpl1/detection.h
index 321198395d1..cebef96485f 100644
--- a/engines/hpl1/detection.h
+++ b/engines/hpl1/detection.h
@@ -54,10 +54,6 @@ public:
 	const DebugChannelDef *getDebugChannels() const override {
 		return debugFlagList;
 	}
-
-	DetectedGames detectGames(const Common::FSList &fslist, uint32 skipADFlags, bool skipIncomplete) override;
-
-	PlainGameList getSupportedGames() const override;
 };
 
 #endif
diff --git a/engines/hpl1/detection_tables.h b/engines/hpl1/detection_tables.h
index 8d7687c44bb..8bdf0dfb2c7 100644
--- a/engines/hpl1/detection_tables.h
+++ b/engines/hpl1/detection_tables.h
@@ -26,13 +26,16 @@ const PlainGameDescriptor GAME_NAMES[] = {
 	{0, 0}};
 
 const ADGameDescription GAME_DESCRIPTIONS[] = {
-	{"penumbraoverture",
-	 nullptr,
-	 AD_ENTRY1s("Penumbra.exe", nullptr, -1),
-	 Common::Language::EN_ANY,
-	 Common::Platform::kPlatformWindows,
-	 ADGF_UNSTABLE,
-	 GUIO1(GUIO_NONE)},
+	// GOG release
+	{
+		"penumbraoverture",
+		nullptr,
+		AD_ENTRY1s("Penumbra.exe", "f840b972ee889200ba501ee3a465317e", 2744320),
+		Common::Language::EN_ANY,
+		Common::Platform::kPlatformWindows,
+		ADGF_UNSTABLE,
+		GUIO0()
+	},
 
 	AD_TABLE_END_MARKER};
 




More information about the Scummvm-git-logs mailing list