2010-08-17 09:28:20 +00:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
|
|
|
*
|
|
|
|
* ScummVM is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
|
|
* file distributed with this source distribution.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2014-02-18 02:34:21 +01:00
|
|
|
*
|
2010-08-17 09:28:20 +00:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2014-02-18 02:34:21 +01:00
|
|
|
*
|
2010-08-17 09:28:20 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2020-08-06 22:45:30 +05:30
|
|
|
#include "base/plugins.h"
|
2010-08-17 09:28:20 +00:00
|
|
|
#include "engines/advancedDetector.h"
|
|
|
|
|
2020-08-25 13:52:43 +05:30
|
|
|
#include "hugo/detection.h"
|
2010-08-17 09:28:20 +00:00
|
|
|
|
|
|
|
namespace Hugo {
|
|
|
|
|
|
|
|
static const PlainGameDescriptor hugoGames[] = {
|
|
|
|
// Games
|
|
|
|
{"hugo1", "Hugo 1: Hugo's House of Horrors"},
|
2010-11-07 22:10:29 +00:00
|
|
|
{"hugo2", "Hugo 2: Whodunit?"},
|
|
|
|
{"hugo3", "Hugo 3: Jungle of Doom"},
|
2010-08-17 09:28:20 +00:00
|
|
|
{0, 0}
|
|
|
|
};
|
|
|
|
|
|
|
|
static const HugoGameDescription gameDescriptions[] = {
|
|
|
|
|
|
|
|
// Hugo1 DOS
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"hugo1", 0,
|
|
|
|
AD_ENTRY1s("house.art", "c9403b2fe539185c9fd569b6cc4ff5ca", 14811),
|
|
|
|
Common::EN_ANY,
|
2013-05-02 18:26:58 -04:00
|
|
|
Common::kPlatformDOS,
|
2010-08-17 09:28:20 +00:00
|
|
|
ADGF_NO_FLAGS,
|
2011-11-16 22:38:58 +01:00
|
|
|
GUIO0()
|
2010-08-17 09:28:20 +00:00
|
|
|
},
|
|
|
|
kGameTypeHugo1
|
|
|
|
},
|
|
|
|
// Hugo1 Windows
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"hugo1", 0,
|
|
|
|
AD_ENTRY1s("objects.dat", "3ba0f108f7690a05a34c56a02fbe644a", 126488),
|
|
|
|
Common::EN_ANY,
|
|
|
|
Common::kPlatformWindows,
|
|
|
|
GF_PACKED,
|
2011-11-16 22:38:58 +01:00
|
|
|
GUIO0()
|
2010-08-17 09:28:20 +00:00
|
|
|
},
|
|
|
|
kGameTypeHugo1
|
|
|
|
},
|
|
|
|
// Hugo2 DOS
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"hugo2", 0,
|
|
|
|
AD_ENTRY1s("objects.dat", "88a718cc0ff2b3b25d49aaaa69d6d52c", 155240),
|
|
|
|
Common::EN_ANY,
|
2013-05-02 18:26:58 -04:00
|
|
|
Common::kPlatformDOS,
|
2010-08-17 09:28:20 +00:00
|
|
|
GF_PACKED,
|
2011-11-16 22:38:58 +01:00
|
|
|
GUIO0()
|
2010-08-17 09:28:20 +00:00
|
|
|
},
|
|
|
|
kGameTypeHugo2
|
|
|
|
},
|
|
|
|
// Hugo2 Windows
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"hugo2", 0,
|
|
|
|
AD_ENTRY1s("objects.dat", "5df4ffc851e66a544c0e95e4e084a806", 158480),
|
|
|
|
Common::EN_ANY,
|
|
|
|
Common::kPlatformWindows,
|
|
|
|
GF_PACKED,
|
2011-11-16 22:38:58 +01:00
|
|
|
GUIO0()
|
2010-08-17 09:28:20 +00:00
|
|
|
},
|
|
|
|
kGameTypeHugo2
|
|
|
|
},
|
|
|
|
// Hugo3 DOS
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"hugo3", 0,
|
|
|
|
AD_ENTRY1s("objects.dat", "bb1b061538a445f2eb99b682c0f506cc", 136419),
|
|
|
|
Common::EN_ANY,
|
2013-05-02 18:26:58 -04:00
|
|
|
Common::kPlatformDOS,
|
2010-08-17 09:28:20 +00:00
|
|
|
GF_PACKED,
|
2011-11-16 22:38:58 +01:00
|
|
|
GUIO0()
|
2010-08-17 09:28:20 +00:00
|
|
|
},
|
|
|
|
kGameTypeHugo3
|
|
|
|
},
|
|
|
|
// Hugo3 Windows
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"hugo3", 0,
|
|
|
|
AD_ENTRY1s("objects.dat", "c9a8af7aa14cc907434eecee3ddd06d3", 136638),
|
|
|
|
Common::EN_ANY,
|
|
|
|
Common::kPlatformWindows,
|
|
|
|
GF_PACKED,
|
2011-11-16 22:38:58 +01:00
|
|
|
GUIO0()
|
2010-08-17 09:28:20 +00:00
|
|
|
},
|
|
|
|
kGameTypeHugo3
|
|
|
|
},
|
|
|
|
|
|
|
|
{AD_TABLE_END_MARKER, kGameTypeNone}
|
|
|
|
};
|
|
|
|
|
2020-10-02 12:25:08 +05:30
|
|
|
class HugoMetaEngineStatic : public AdvancedMetaEngineStatic {
|
2010-08-17 09:28:20 +00:00
|
|
|
public:
|
2020-10-02 12:25:08 +05:30
|
|
|
HugoMetaEngineStatic() : AdvancedMetaEngineStatic(gameDescriptions, sizeof(HugoGameDescription), hugoGames) {
|
2011-06-10 15:53:53 +02:00
|
|
|
}
|
2010-08-17 09:28:20 +00:00
|
|
|
|
2020-02-05 15:30:39 +01:00
|
|
|
const char *getEngineId() const override {
|
2016-09-15 18:23:35 +02:00
|
|
|
return "hugo";
|
|
|
|
}
|
|
|
|
|
2020-02-05 15:30:39 +01:00
|
|
|
const char *getName() const override {
|
2011-05-15 15:50:09 +01:00
|
|
|
return "Hugo";
|
2010-08-17 09:28:20 +00:00
|
|
|
}
|
|
|
|
|
2020-02-05 15:30:39 +01:00
|
|
|
const char *getOriginalCopyright() const override {
|
2010-08-17 09:28:20 +00:00
|
|
|
return "Hugo Engine (C) 1989-1997 David P. Gray";
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
} // End of namespace Hugo
|
|
|
|
|
2020-10-11 23:12:32 +02:00
|
|
|
REGISTER_PLUGIN_STATIC(HUGO_DETECTION, PLUGIN_TYPE_ENGINE_DETECTION, Hugo::HugoMetaEngineStatic);
|