aboutsummaryrefslogtreecommitdiff
path: root/engines/adl/detection.cpp
diff options
context:
space:
mode:
authorWalter van Niftrik2016-02-27 10:46:37 +0100
committerWalter van Niftrik2016-03-09 10:03:13 +0100
commit87e2c4c1a933cbfb8cb03e36531503f0d1122053 (patch)
tree6cc4afd4320c68d628026ebf28933e1f8103d7ab /engines/adl/detection.cpp
parentc8ab2909c67703ad1255aa27159049f058d1a361 (diff)
downloadscummvm-rg350-87e2c4c1a933cbfb8cb03e36531503f0d1122053.tar.gz
scummvm-rg350-87e2c4c1a933cbfb8cb03e36531503f0d1122053.tar.bz2
scummvm-rg350-87e2c4c1a933cbfb8cb03e36531503f0d1122053.zip
ADL: Rename game type
Diffstat (limited to 'engines/adl/detection.cpp')
-rw-r--r--engines/adl/detection.cpp33
1 files changed, 6 insertions, 27 deletions
diff --git a/engines/adl/detection.cpp b/engines/adl/detection.cpp
index ba4e0104b9..9fadb9d3d7 100644
--- a/engines/adl/detection.cpp
+++ b/engines/adl/detection.cpp
@@ -20,14 +20,9 @@
*
*/
-#include "adl/adl.h"
-
-#include "common/config-manager.h"
-#include "common/error.h"
-#include "common/fs.h"
-
#include "engines/advancedDetector.h"
-#include "engines/metaengine.h"
+
+#include "adl/adl.h"
namespace Adl {
@@ -36,22 +31,7 @@ struct AdlGameDescription {
GameType gameType;
};
-uint32 AdlEngine::getFeatures() const {
- return _gameDescription->desc.flags;
-}
-
-const char *AdlEngine::getGameId() const {
- return _gameDescription->desc.gameid;
-}
-
-const char *const directoryGlobs[] = {
- "game",
- "datafiles",
- 0
-};
-
static const PlainGameDescriptor adlGames[] = {
- // Games
{"hires1", "Hi-Res Adventure #1: Mystery House"},
{0, 0}
};
@@ -72,7 +52,7 @@ static const AdlGameDescription gameDescriptions[] = {
ADGF_NO_FLAGS,
GUIO0()
},
- kGameTypeAdl1
+ kGameTypeHires1
},
{AD_TABLE_END_MARKER, kGameTypeNone}
};
@@ -82,7 +62,7 @@ public:
AdlMetaEngine() : AdvancedMetaEngine(gameDescriptions, sizeof(AdlGameDescription), adlGames) { }
const char *getName() const {
- return "Hi-Res Adventure";
+ return "ADL";
}
const char *getOriginalCopyright() const {
@@ -93,10 +73,9 @@ public:
};
bool AdlMetaEngine::createInstance(OSystem *syst, Engine **engine, const ADGameDescription *gd) const {
- if (gd) {
+ if (gd)
*engine = AdlEngine::create(((const AdlGameDescription *)gd)->gameType, syst, (const AdlGameDescription *)gd);
- }
- return gd != 0;
+ return gd != nullptr;
}
} // End of namespace Adl