aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2018-11-03 21:18:23 -0700
committerPaul Gilbert2018-12-08 19:05:59 -0800
commit8bb3f55dff3dfe82a2d85783d06c17ffa8aa3f60 (patch)
tree43f17e23dde312e36a7c9418bae0baccc9469b0c
parentce582aab000187a646dab6cc978b821da4660940 (diff)
downloadscummvm-rg350-8bb3f55dff3dfe82a2d85783d06c17ffa8aa3f60.tar.gz
scummvm-rg350-8bb3f55dff3dfe82a2d85783d06c17ffa8aa3f60.tar.bz2
scummvm-rg350-8bb3f55dff3dfe82a2d85783d06c17ffa8aa3f60.zip
GLK: SCOTT: Add custom game Ids for each known Scott Adams game
-rw-r--r--engines/gargoyle/detection.cpp22
-rw-r--r--engines/gargoyle/scott/detection.cpp35
2 files changed, 38 insertions, 19 deletions
diff --git a/engines/gargoyle/detection.cpp b/engines/gargoyle/detection.cpp
index 5167440e39..8c0580a878 100644
--- a/engines/gargoyle/detection.cpp
+++ b/engines/gargoyle/detection.cpp
@@ -69,7 +69,25 @@ const Common::String &GargoyleEngine::getGameMD5() const {
} // End of namespace Gargoyle
static const PlainGameDescriptor gargoyleGames[] = {
- {"scott", "Scott Adams Games"},
+ {"scottadams", "Scott Adams Games"},
+
+ // Scott Adams games
+ { "adventureland", "Adventureland" },
+ { "pirateadventure", "Pirate Adventure" },
+ { "missionimpossible", "Mission Impossible" },
+ { "voodoocastle", "Voodoo Castle" },
+ { "thecount", "The Count" },
+ { "strangeodyssey", "Strange Odyssey" },
+ { "mysteryfunhouse", "Mystery Fun House" },
+ { "pyramidofdoom", "Pyramid Of Doom" },
+ { "ghosttown", "Ghost Town" },
+ { "savageisland1", "Savage Island, Part 1" },
+ { "savageisland2", "Savage Island, Part 2" },
+ { "goldenvoyage", "The Golden Voyage" },
+ { "adventure13", "Adventure 13" },
+ { "adventure14", "Adventure 14" },
+ { "buckaroobonzai", "Buckaroo Banzai" },
+
{0, 0}
};
@@ -90,7 +108,7 @@ public:
}
virtual const char *getOriginalCopyright() const {
- return "Gargoyle Engine (c)";
+ return "Gargoyle Engine (c) 2018";
}
virtual bool hasFeature(MetaEngineFeature f) const override;
diff --git a/engines/gargoyle/scott/detection.cpp b/engines/gargoyle/scott/detection.cpp
index 6c9f5c4d6c..04d4f83bea 100644
--- a/engines/gargoyle/scott/detection.cpp
+++ b/engines/gargoyle/scott/detection.cpp
@@ -29,27 +29,28 @@ namespace Scott {
struct ScottGame {
const char *_md5;
+ const char *_gameId;
int32 _filesize;
const char *_desc;
};
const ScottGame SCOTT_GAMES[] = {
- { "ae541fc1085da2f7d561b72ed20a6bc1", 18003, "Adventureland" },
- { "cbd47ab4fcfe00231ffd71d52378d410", 18482, "Pirate Adventure" },
- { "9251ab2c64e63559d8a6e9e6246760a5", 17227, "Mission Impossible" },
- { "be849c5747c7fc3b201984afb4403b8e", 18140, "Voodoo Castle" },
- { "85b75b6079b5ee572b5259b29a0e5d21", 19999, "The Count" },
- { "c423cae841ac1927b5b2e503607b21bc", 20115, "Strange Odyssey" },
- { "326b98b991d401605074e64d474ce566", 19700, "Mystery Fun House" },
- { "8ef9010399f055da9adb15ce7745a11c", 20320, "Pyramid Of Doom" },
- { "fcdcca8b2acf76ba2d0006cefa3630a1", 20687, "Ghost Town" },
- { "c8aaa80f07c40fa8e4b17432644919dc", 22669, "Save Island, Part 1" },
- { "2add0f28d9b236c866890cdf8d86ee60", 21169, "Savage Island, Part 2" },
- { "675126bd0477e8ed9230ad3db5afc45f", 21401, "The Golden Voyage" },
- { "0ef0def798d895ed766041fa99dd28a0", 22346, "Adventure 13" },
- { "0bf1bcc649422798332a38c88588fdff", 22087, "Adventure 14" },
- { "a0a5423967287dae9cbeb9abe8324479", 21038, "Buckaroo Banzai" },
- { nullptr, 0, nullptr }
+ { "ae541fc1085da2f7d561b72ed20a6bc1", "adventureland", 18003, "Adventureland" },
+ { "cbd47ab4fcfe00231ffd71d52378d410", "pirateadventure", 18482, "Pirate Adventure" },
+ { "9251ab2c64e63559d8a6e9e6246760a5", "missionimpossible", 17227, "Mission Impossible" },
+ { "be849c5747c7fc3b201984afb4403b8e", "voodoocastle", 18140, "Voodoo Castle" },
+ { "85b75b6079b5ee572b5259b29a0e5d21", "thecount", 19999, "The Count" },
+ { "c423cae841ac1927b5b2e503607b21bc", "strangeodyssey", 20115, "Strange Odyssey" },
+ { "326b98b991d401605074e64d474ce566", "mysteryfunhouse", 19700, "Mystery Fun House" },
+ { "8ef9010399f055da9adb15ce7745a11c", "pyramidofdoom", 20320, "Pyramid Of Doom" },
+ { "fcdcca8b2acf76ba2d0006cefa3630a1", "ghosttown", 20687, "Ghost Town" },
+ { "c8aaa80f07c40fa8e4b17432644919dc", "savageisland1", 22669, "Savage Island, Part 1" },
+ { "2add0f28d9b236c866890cdf8d86ee60", "savageisland2", 21169, "Savage Island, Part 2" },
+ { "675126bd0477e8ed9230ad3db5afc45f", "goldenvoyage", 21401, "The Golden Voyage" },
+ { "0ef0def798d895ed766041fa99dd28a0", "adventure13", 22346, "Adventure 13" },
+ { "0bf1bcc649422798332a38c88588fdff", "adventure14", 22087, "Adventure 14" },
+ { "a0a5423967287dae9cbeb9abe8324479", "buckaroobonzai", 21038, "Buckaroo Banzai" },
+ { nullptr, nullptr, 0, nullptr }
};
void ScottMetaEngine::detectGames(const Common::FSList &fslist, DetectedGames &gameList) {
@@ -71,7 +72,7 @@ void ScottMetaEngine::detectGames(const Common::FSList &fslist, DetectedGames &g
if (p->_filesize) {
// Found a match
- DetectedGame gd("scott", p->_desc, Common::EN_ANY, Common::kPlatformUnknown, "Scott");
+ DetectedGame gd(p->_gameId, p->_desc, Common::EN_ANY, Common::kPlatformUnknown);
gd.addExtraEntry("filename", file->getName());
gameList.push_back(gd);