aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2012-09-08 09:08:24 +1000
committerPaul Gilbert2012-09-08 09:08:24 +1000
commitf2012c6ad9e48673270ec0c0acda363eb69cc275 (patch)
tree09f8d87e4fefec7a05367f67cf3ebe17b24360ff
parent0b616d0082239ac2cdc93f59c1a6a48c18215c15 (diff)
downloadscummvm-rg350-f2012c6ad9e48673270ec0c0acda363eb69cc275.tar.gz
scummvm-rg350-f2012c6ad9e48673270ec0c0acda363eb69cc275.tar.bz2
scummvm-rg350-f2012c6ad9e48673270ec0c0acda363eb69cc275.zip
HOPKINS: Added missing changes to hook in the new engine
-rw-r--r--engines/engines.mk5
-rw-r--r--engines/hopkins/detection.cpp4
-rw-r--r--engines/hopkins/detection_tables.h24
-rw-r--r--engines/plugins_table.h3
4 files changed, 30 insertions, 6 deletions
diff --git a/engines/engines.mk b/engines/engines.mk
index fd97f67c08..8a08d93996 100644
--- a/engines/engines.mk
+++ b/engines/engines.mk
@@ -75,6 +75,11 @@ DEFINES += -DENABLE_GROOVIE2
endif
endif
+ifdef ENABLE_HOPKINS
+DEFINES += -DENABLE_HUGO=$(ENABLE_HOPKINS)
+MODULES += engines/hopkins
+endif
+
ifdef ENABLE_HUGO
DEFINES += -DENABLE_HUGO=$(ENABLE_HUGO)
MODULES += engines/hugo
diff --git a/engines/hopkins/detection.cpp b/engines/hopkins/detection.cpp
index 3d1107271c..ffbf243122 100644
--- a/engines/hopkins/detection.cpp
+++ b/engines/hopkins/detection.cpp
@@ -53,7 +53,7 @@ bool HopkinsEngine::getIsDemo() const {
} // End of namespace Hopkins
-static const PlainGameDescriptor tonyGames[] = {
+static const PlainGameDescriptor hopkinsGames[] = {
{"hopkins", "Hopkins FBI"},
{0, 0}
};
@@ -62,7 +62,7 @@ static const PlainGameDescriptor tonyGames[] = {
class HopkinsMetaEngine : public AdvancedMetaEngine {
public:
- HopkinsMetaEngine() : AdvancedMetaEngine(Hopkins::gameDescriptions, sizeof(Hopkins::HopkinsGameDescription), tonyGames) {
+ HopkinsMetaEngine() : AdvancedMetaEngine(Hopkins::gameDescriptions, sizeof(Hopkins::HopkinsGameDescription), hopkinsGames) {
}
virtual const char *getName() const {
diff --git a/engines/hopkins/detection_tables.h b/engines/hopkins/detection_tables.h
index 7b2ea8fbd8..38548e1eda 100644
--- a/engines/hopkins/detection_tables.h
+++ b/engines/hopkins/detection_tables.h
@@ -24,17 +24,33 @@ namespace Hopkins {
static const HopkinsGameDescription gameDescriptions[] = {
{
- // Hopkins FBI Demo
+ // Hopkins FBI Linux Demo 1.00
{
"hopkins",
0,
{
- {"vendor.txt", 0, "ce82907242166bfb594d97bdb68f96d2", 546},
+ {"Hopkins-PDemo.bin", 0, "88b4d6e14b9b1407083cb3d1213c0fa7", 272027},
AD_LISTEND
},
Common::EN_ANY,
- Common::kPlatformWindows,
- ADGF_NO_FLAGS,
+ Common::kPlatformLinux,
+ ADGF_DEMO,
+ GUIO1(GUIO_NONE)
+ },
+ },
+
+ {
+ // Hopkins FBI Linux Demo 1.02
+ {
+ "hopkins",
+ 0,
+ {
+ {"Hopkins-PDemo.bin", 0, "f82f4e698f3a189419351be0de2b2f8e", 273760},
+ AD_LISTEND
+ },
+ Common::EN_ANY,
+ Common::kPlatformLinux,
+ ADGF_DEMO,
GUIO1(GUIO_NONE)
},
},
diff --git a/engines/plugins_table.h b/engines/plugins_table.h
index 9e6dd4ac80..c07dbc66a4 100644
--- a/engines/plugins_table.h
+++ b/engines/plugins_table.h
@@ -35,6 +35,9 @@ LINK_PLUGIN(GOB)
#if PLUGIN_ENABLED_STATIC(GROOVIE)
LINK_PLUGIN(GROOVIE)
#endif
+#if PLUGIN_ENABLED_STATIC(HOPKINS)
+LINK_PLUGIN(HOPKINS)
+#endif
#if PLUGIN_ENABLED_STATIC(HUGO)
LINK_PLUGIN(HUGO)
#endif