diff options
| author | Nipun Garg | 2019-03-12 01:19:30 +0530 |
|---|---|---|
| committer | Eugene Sandulenko | 2019-09-03 17:16:41 +0200 |
| commit | d560efbef797a3d976dcafffc0c0cdd7252f5763 (patch) | |
| tree | abbfc1113c70280f1208a99858ae755701c2cf41 | |
| parent | 31826a2771f00f9ccf2b253278d84b58cb8b1dc7 (diff) | |
| download | scummvm-rg350-d560efbef797a3d976dcafffc0c0cdd7252f5763.tar.gz scummvm-rg350-d560efbef797a3d976dcafffc0c0cdd7252f5763.tar.bz2 scummvm-rg350-d560efbef797a3d976dcafffc0c0cdd7252f5763.zip | |
HDB: Attach the HDBGame class into the HDBMetaEngine
Modified HBDMetaEngine's createInstance() method to instantiate the
engine to an HDBGame object
| -rw-r--r-- | engines/hdb/configure.engine | 2 | ||||
| -rw-r--r-- | engines/hdb/detection.cpp | 14 |
2 files changed, 11 insertions, 5 deletions
diff --git a/engines/hdb/configure.engine b/engines/hdb/configure.engine index 28eba05fc6..6e8649012f 100644 --- a/engines/hdb/configure.engine +++ b/engines/hdb/configure.engine @@ -1,3 +1,3 @@ # This file is included from the main "configure" script # add_engine [name] [desc] [build-by-default] [subengines] [base games] [deps] -add_engine hdb "Hyperspace Delivery Boy" yes
\ No newline at end of file +add_engine hdb "Hyperspace Delivery Boy!" yes
\ No newline at end of file diff --git a/engines/hdb/detection.cpp b/engines/hdb/detection.cpp index 047252770d..e8421cfbe8 100644 --- a/engines/hdb/detection.cpp +++ b/engines/hdb/detection.cpp @@ -21,10 +21,16 @@ */ #include "base/plugins.h" + #include "engines/advancedDetector.h" #include "hdb.h" +namespace HDB { +const char *HDBGame::getGameId() const { return _gameDescription->gameId; } +Common::Platform HDBGame::getPlatform() const { return _gameDescription->platform; } +} // End of namespace HDB + static const PlainGameDescriptor hdbGames[] = { {"hdb", "Hyperspace Delivery Boy!"}, {0, 0} @@ -34,8 +40,8 @@ namespace HDB { static const ADGameDescription gameDescriptions[] = { { "hdb", - 0, - AD_ENTRY1s("hyperdemo.mpc", "e331ccadb9b92d3e03f31a70b7814af1", 13816461), + "", + AD_ENTRY1s("hyperdemo.mpc", "d8743b3b8be56486bcfb1398b2f2aad4", 13816461), Common::EN_ANY, Common::kPlatformUnknown, ADGF_NO_FLAGS, @@ -43,7 +49,7 @@ static const ADGameDescription gameDescriptions[] = { }, AD_TABLE_END_MARKER }; -} +} // End of namespace HDB class HDBMetaEngine : public AdvancedMetaEngine { public: @@ -69,7 +75,7 @@ bool HDBMetaEngine::hasFeature(MetaEngineFeature f) const { bool HDBMetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const { if (desc) { -// *engine = new HDBGame() + *engine = new HDB::HDBGame(syst, desc); } return desc != nullptr; |
