[Scummvm-git-logs] scummvm master -> 45b03009ef9d965c7c370d3886816358a471f78f
sev-
noreply at scummvm.org
Wed Mar 1 23:27:27 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:
45b03009ef SWORD1: Made detection more robust and added Polish with DXA. Bug #14276
Commit: 45b03009ef9d965c7c370d3886816358a471f78f
https://github.com/scummvm/scummvm/commit/45b03009ef9d965c7c370d3886816358a471f78f
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2023-03-02T00:26:16+01:00
Commit Message:
SWORD1: Made detection more robust and added Polish with DXA. Bug #14276
Changed paths:
engines/sword1/detection.cpp
engines/sword1/detection_tables.h
engines/sword1/sword1.cpp
diff --git a/engines/sword1/detection.cpp b/engines/sword1/detection.cpp
index 00361545688..c9a2f0bdf79 100644
--- a/engines/sword1/detection.cpp
+++ b/engines/sword1/detection.cpp
@@ -36,11 +36,18 @@ static const PlainGameDescriptor swordGames[] = {
#include "sword1/detection_tables.h"
+static const char *const directoryGlobs[] = {
+ "smackshi",
+ "video",
+ nullptr
+};
+
class SwordMetaEngineDetection : public AdvancedMetaEngineDetection {
public:
SwordMetaEngineDetection() : AdvancedMetaEngineDetection(Sword1::gameDescriptions, sizeof(ADGameDescription), swordGames) {
_guiOptions = GUIO2(GUIO_NOMIDI, GUIO_NOASPECT);
_flags = kADFlagMatchFullPaths;
+ _directoryGlobs = directoryGlobs;
}
PlainGameDescriptor findGame(const char *gameId) const override {
diff --git a/engines/sword1/detection_tables.h b/engines/sword1/detection_tables.h
index d1910dd8016..ca4a6863287 100644
--- a/engines/sword1/detection_tables.h
+++ b/engines/sword1/detection_tables.h
@@ -333,6 +333,19 @@ static const ADGameDescription gameDescriptions[] = {
GUIO0()
},
+ {
+ "sword1",
+ "English speech and DXA cutscenes",
+ AD_ENTRY4s("clusters/scripts.clu", "72b10193714e8c6e4daca51791c0db0c", 1087240,
+ "clusters/swordres.rif", "88c0793a4fa908083b00f6677c545f78", 58916,
+ "clusters/text.clu", "7d9e47533fde5333dc310bfd73eaeb5c", 2666944,
+ "intro.dxa", nullptr, -1),
+ Common::PL_POL,
+ Common::kPlatformWindows,
+ ADGF_NO_FLAGS,
+ GUIO0()
+ },
+
{
"sword1",
"English speech",
@@ -365,7 +378,7 @@ static const ADGameDescription gameDescriptions[] = {
AD_ENTRY4s("clusters/scripts.clu", "72b10193714e8c6e4daca51791c0db0c", 1088372,
"clusters/swordres.rif", "239bdd76c405bad0f804a8ae5df4adb0", 59788,
"clusters/text.clu", "76f93f5feecc8915435105478f3c6615", 3199652,
- "smackshi/intro.dxa", nullptr, -1),
+ "intro.dxa", nullptr, -1),
Common::CS_CZE,
Common::kPlatformWindows,
ADGF_NO_FLAGS,
diff --git a/engines/sword1/sword1.cpp b/engines/sword1/sword1.cpp
index b921effb772..f4c174b3536 100644
--- a/engines/sword1/sword1.cpp
+++ b/engines/sword1/sword1.cpp
@@ -57,8 +57,8 @@ SwordEngine::SwordEngine(OSystem *syst, const ADGameDescription *gameDesc)
SearchMan.addSubDirectoryMatching(gameDataDir, "streams"); // PSX videos
//SearchMan.addSubDirectoryMatching(gameDataDir, "clusters"); // Comes from AD
- //SearchMan.addSubDirectoryMatching(gameDataDir, "video"); // Comes from AD
- //SearchMan.addSubDirectoryMatching(gameDataDir, "smackshi"); // Comes from AD
+ SearchMan.addSubDirectoryMatching(gameDataDir, "video"); // Comes from AD
+ SearchMan.addSubDirectoryMatching(gameDataDir, "smackshi"); // Comes from AD
//SearchMan.addSubDirectoryMatching(gameDataDir, "english"); // PSX Demo // Comes from AD
//SearchMan.addSubDirectoryMatching(gameDataDir, "italian"); // PSX Demo // Comes from AD
More information about the Scummvm-git-logs
mailing list