2014-03-08 22:54:34 +01: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.
|
|
|
|
*
|
2021-12-26 18:47:58 +01:00
|
|
|
* 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 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
2014-03-08 22:54:34 +01: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.
|
|
|
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2021-12-26 18:47:58 +01:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2014-03-08 22:54:34 +01:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "engines/advancedDetector.h"
|
2020-08-06 22:46:50 +05:30
|
|
|
|
2014-03-08 22:54:34 +01:00
|
|
|
#include "base/plugins.h"
|
2020-08-06 22:46:50 +05:30
|
|
|
|
2020-08-25 13:52:43 +05:30
|
|
|
#include "illusions/detection.h"
|
2014-03-08 22:54:34 +01:00
|
|
|
|
|
|
|
static const PlainGameDescriptor illusionsGames[] = {
|
2023-01-01 23:39:50 +01:00
|
|
|
{ "bbdou", "Beavis and Butt-Head: Do U." },
|
|
|
|
{ "duckman", "Duckman: The Graphic Adventures of a Private Dick" },
|
2021-11-13 23:40:29 +02:00
|
|
|
{ nullptr, nullptr }
|
2014-03-08 22:54:34 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
namespace Illusions {
|
|
|
|
|
2014-04-07 12:58:26 +02:00
|
|
|
static const IllusionsGameDescription gameDescriptions[] = {
|
2014-03-08 22:54:34 +01:00
|
|
|
{
|
2014-04-07 12:58:26 +02:00
|
|
|
{
|
|
|
|
"bbdou",
|
2021-11-13 23:40:29 +02:00
|
|
|
nullptr,
|
2014-04-07 12:58:26 +02:00
|
|
|
AD_ENTRY1s("000D0001.scr", "d0c846d5dccc5607a482c7dcbdf06973", 601980),
|
|
|
|
Common::EN_ANY,
|
|
|
|
Common::kPlatformWindows,
|
2018-06-26 22:13:47 +10:00
|
|
|
ADGF_UNSTABLE | ADGF_DROPPLATFORM,
|
2014-04-07 12:58:26 +02:00
|
|
|
GUIO0()
|
|
|
|
},
|
|
|
|
kGameIdBBDOU
|
2014-03-08 22:54:34 +01:00
|
|
|
},
|
|
|
|
|
2014-04-08 19:43:17 +02:00
|
|
|
{
|
|
|
|
{
|
|
|
|
"duckman",
|
2021-11-13 23:40:29 +02:00
|
|
|
nullptr,
|
2014-04-08 19:43:17 +02:00
|
|
|
AD_ENTRY1s("duckman.gam", "172c0514f3793041718159cf9cf9935f", 29560832),
|
|
|
|
Common::EN_ANY,
|
|
|
|
Common::kPlatformWindows,
|
2018-06-26 22:13:47 +10:00
|
|
|
ADGF_DROPPLATFORM,
|
2014-04-08 19:43:17 +02:00
|
|
|
GUIO0()
|
|
|
|
},
|
|
|
|
kGameIdDuckman
|
|
|
|
},
|
|
|
|
|
2018-12-03 23:54:24 +00:00
|
|
|
{
|
|
|
|
{
|
|
|
|
"duckman",
|
|
|
|
"Demo",
|
|
|
|
AD_ENTRY1s("duckman.gam", "71d01e3f3d9d4e51cd69f71028745610", 7127040),
|
|
|
|
Common::EN_ANY,
|
|
|
|
Common::kPlatformWindows,
|
|
|
|
ADGF_DROPPLATFORM | ADGF_DEMO,
|
|
|
|
GUIO0()
|
|
|
|
},
|
|
|
|
kGameIdDuckman
|
|
|
|
},
|
|
|
|
|
2018-06-22 23:04:48 +10:00
|
|
|
{
|
|
|
|
{
|
|
|
|
"duckman",
|
2021-11-13 23:40:29 +02:00
|
|
|
nullptr,
|
2018-06-22 23:04:48 +10:00
|
|
|
AD_ENTRY1s("duckman.gam", "64d16922ffb46b746fc2c12a14d75bcc", 29779968),
|
|
|
|
Common::DE_DEU,
|
|
|
|
Common::kPlatformWindows,
|
2018-06-26 22:13:47 +10:00
|
|
|
ADGF_DROPPLATFORM,
|
2018-06-22 23:04:48 +10:00
|
|
|
GUIO0()
|
|
|
|
},
|
|
|
|
kGameIdDuckman
|
|
|
|
},
|
|
|
|
|
2020-09-13 02:10:13 +02:00
|
|
|
{
|
|
|
|
{
|
|
|
|
"duckman",
|
2021-11-13 23:40:29 +02:00
|
|
|
nullptr,
|
2020-09-13 02:10:13 +02:00
|
|
|
AD_ENTRY1s("duckman.gam", "a65f9b58427b3543882bddf36abe5878", 29564928),
|
|
|
|
Common::RU_RUS,
|
|
|
|
Common::kPlatformWindows,
|
|
|
|
ADGF_DROPPLATFORM,
|
|
|
|
GUIO0()
|
|
|
|
},
|
|
|
|
kGameIdDuckman
|
|
|
|
},
|
|
|
|
|
2014-04-07 12:58:26 +02:00
|
|
|
{AD_TABLE_END_MARKER, 0}
|
2014-03-08 22:54:34 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
} // End of namespace Illusions
|
|
|
|
|
|
|
|
static const char * const directoryGlobs[] = {
|
|
|
|
"resource",
|
2021-11-13 23:40:29 +02:00
|
|
|
nullptr
|
2014-03-08 22:54:34 +01:00
|
|
|
};
|
|
|
|
|
2020-10-11 23:14:39 +02:00
|
|
|
class IllusionsMetaEngineDetection : public AdvancedMetaEngineDetection {
|
2014-03-08 22:54:34 +01:00
|
|
|
public:
|
2020-10-11 23:14:39 +02:00
|
|
|
IllusionsMetaEngineDetection() : AdvancedMetaEngineDetection(Illusions::gameDescriptions, sizeof(Illusions::IllusionsGameDescription), illusionsGames) {
|
2014-03-08 22:54:34 +01:00
|
|
|
_maxScanDepth = 2;
|
|
|
|
_directoryGlobs = directoryGlobs;
|
|
|
|
}
|
|
|
|
|
2022-01-13 20:34:25 +00:00
|
|
|
const char *getName() const override {
|
2016-09-15 18:23:35 +02:00
|
|
|
return "illusions";
|
|
|
|
}
|
|
|
|
|
2022-01-13 20:34:25 +00:00
|
|
|
const char *getEngineName() const override {
|
2018-04-16 23:09:10 +10:00
|
|
|
return "Illusions";
|
2014-03-08 22:54:34 +01:00
|
|
|
}
|
|
|
|
|
2020-02-09 12:05:29 +01:00
|
|
|
const char *getOriginalCopyright() const override {
|
2014-03-08 22:54:34 +01:00
|
|
|
return "(C) The Illusions Gaming Company";
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2020-10-11 23:14:39 +02:00
|
|
|
REGISTER_PLUGIN_STATIC(ILLUSIONS_DETECTION, PLUGIN_TYPE_ENGINE_DETECTION, IllusionsMetaEngineDetection);
|