aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/detection.cpp
diff options
context:
space:
mode:
authorNipun Garg2019-03-11 16:29:25 +0530
committerEugene Sandulenko2019-09-03 17:16:41 +0200
commit44cf6077b7435ae414f4bd18ac497a23c364961d (patch)
tree59acdaa17763e42c19a33d463a403759cac95158 /engines/hdb/detection.cpp
parentda37a00ff1f0635da7ca51d9f0083d1f6d19f00d (diff)
downloadscummvm-rg350-44cf6077b7435ae414f4bd18ac497a23c364961d.tar.gz
scummvm-rg350-44cf6077b7435ae414f4bd18ac497a23c364961d.tar.bz2
scummvm-rg350-44cf6077b7435ae414f4bd18ac497a23c364961d.zip
HDB: Add array of ADGameDescription objects
The ADGameDescription object corresponding to hyperdemo.mpc is added to gameDescriptions[]. Also, updated the getName() and getOriginalCopyright() functions.
Diffstat (limited to 'engines/hdb/detection.cpp')
-rw-r--r--engines/hdb/detection.cpp21
1 files changed, 11 insertions, 10 deletions
diff --git a/engines/hdb/detection.cpp b/engines/hdb/detection.cpp
index 58afe4cbdd..047252770d 100644
--- a/engines/hdb/detection.cpp
+++ b/engines/hdb/detection.cpp
@@ -20,42 +20,43 @@
*
*/
-#include "hdb/hdb.h"
+#include "base/plugins.h"
#include "engines/advancedDetector.h"
+#include "hdb.h"
+
static const PlainGameDescriptor hdbGames[] = {
- {"hdb", "Hyperspace Delivery Boy"},
+ {"hdb", "Hyperspace Delivery Boy!"},
{0, 0}
};
namespace HDB {
-static const ADGameDescription gameDescription[] = {
+static const ADGameDescription gameDescriptions[] = {
{
"hdb",
- //AD_ENTRY1s("GAME.BIN", 0, 41622),
- //TODO: Come up with an actual GameFileDescription
+ 0,
+ AD_ENTRY1s("hyperdemo.mpc", "e331ccadb9b92d3e03f31a70b7814af1", 13816461),
Common::EN_ANY,
Common::kPlatformUnknown,
ADGF_NO_FLAGS,
GUIO1(GUIO_NONE)
},
-
AD_TABLE_END_MARKER
};
}
class HDBMetaEngine : public AdvancedMetaEngine {
public:
- HDBMetaEngine() : AdvancedMetaEngine() {
+ HDBMetaEngine() : AdvancedMetaEngine(HDB::gameDescriptions, sizeof(ADGameDescription), hdbGames) {
_singleId = "hdb";
}
virtual const char *getName() const {
- return "Hyperspace Delivery Boy";
+ return "Hyperspace Delivery Boy!";
}
virtual const char *getOriginalCopyright() const {
- return "";
+ return "Hyperspace Delivery Boy! (c) 2001 Monkeystone Games";
}
virtual bool hasFeature(MetaEngineFeature f) const;
@@ -68,7 +69,7 @@ bool HDBMetaEngine::hasFeature(MetaEngineFeature f) const {
bool HDBMetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const {
if (desc) {
- *engine = new HDB::HDBGame(syst, desc);
+// *engine = new HDBGame()
}
return desc != nullptr;