Skip to content

Commit

Permalink
HOPKINS: Added missing changes to hook in the new engine
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Sep 7, 2012
1 parent 0b616d0 commit f2012c6
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 6 deletions.
5 changes: 5 additions & 0 deletions engines/engines.mk
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions engines/hopkins/detection.cpp
Expand Up @@ -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}
};
Expand All @@ -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 {
Expand Down
24 changes: 20 additions & 4 deletions engines/hopkins/detection_tables.h
Expand Up @@ -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)
},
},
Expand Down
3 changes: 3 additions & 0 deletions engines/plugins_table.h
Expand Up @@ -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
Expand Down

0 comments on commit f2012c6

Please sign in to comment.