2008-11-10 20:38:54 +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 01:34:26 +00:00
|
|
|
*
|
2008-11-10 20:38:54 +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 01:34:26 +00:00
|
|
|
*
|
2008-11-10 20:38:54 +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.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "common/config-manager.h"
|
2009-01-29 22:13:01 +00:00
|
|
|
#include "engines/advancedDetector.h"
|
2008-11-10 20:38:54 +00:00
|
|
|
#include "base/plugins.h"
|
2020-08-26 11:11:04 +00:00
|
|
|
#include "tucker/detection.h"
|
2008-11-10 20:38:54 +00:00
|
|
|
|
|
|
|
static const PlainGameDescriptor tuckerGames[] = {
|
|
|
|
{ "tucker", "Bud Tucker in Double Trouble" },
|
2018-07-04 09:45:34 +00:00
|
|
|
{ nullptr, nullptr }
|
2008-11-10 20:38:54 +00:00
|
|
|
};
|
|
|
|
|
2009-01-29 22:13:01 +00:00
|
|
|
static const ADGameDescription tuckerGameDescriptions[] = {
|
2008-11-10 20:38:54 +00:00
|
|
|
{
|
|
|
|
"tucker",
|
|
|
|
"",
|
|
|
|
AD_ENTRY1s("infobar.txt", "f1e42a95972643462b9c3c2ea79d6683", 543),
|
|
|
|
Common::FR_FRA,
|
2013-05-02 22:26:58 +00:00
|
|
|
Common::kPlatformDOS,
|
2009-06-06 17:56:41 +00:00
|
|
|
Tucker::kGameFlagNoSubtitles,
|
2019-09-27 22:40:54 +00:00
|
|
|
GUIO1(GUIO_NOMIDI)
|
2008-11-10 20:38:54 +00:00
|
|
|
},
|
2008-11-10 22:08:52 +00:00
|
|
|
{
|
|
|
|
"tucker",
|
|
|
|
"",
|
|
|
|
AD_ENTRY1s("infobar.txt", "9c1ddeafc5283b90d1a284bd0924831c", 462),
|
|
|
|
Common::EN_ANY,
|
2013-05-02 22:26:58 +00:00
|
|
|
Common::kPlatformDOS,
|
2009-06-06 17:56:41 +00:00
|
|
|
Tucker::kGameFlagEncodedData,
|
2019-09-27 22:40:54 +00:00
|
|
|
GUIO1(GUIO_NOMIDI)
|
2008-11-10 22:08:52 +00:00
|
|
|
},
|
2008-11-14 09:45:42 +00:00
|
|
|
{
|
|
|
|
"tucker",
|
|
|
|
"",
|
|
|
|
AD_ENTRY1s("infobar.txt", "1b3ea79d8528ea3c7df83dd0ed345e37", 525),
|
|
|
|
Common::ES_ESP,
|
2013-05-02 22:26:58 +00:00
|
|
|
Common::kPlatformDOS,
|
2008-12-17 21:29:56 +00:00
|
|
|
Tucker::kGameFlagEncodedData,
|
2019-09-27 22:40:54 +00:00
|
|
|
GUIO1(GUIO_NOMIDI)
|
2008-11-14 09:45:42 +00:00
|
|
|
},
|
2008-11-30 11:30:29 +00:00
|
|
|
{
|
|
|
|
"tucker",
|
|
|
|
"",
|
|
|
|
AD_ENTRY1s("infobrgr.txt", "4df9eb65722418d1a1723508115b146c", 552),
|
2008-12-12 21:42:38 +00:00
|
|
|
Common::DE_DEU,
|
2013-05-02 22:26:58 +00:00
|
|
|
Common::kPlatformDOS,
|
2009-06-06 17:56:41 +00:00
|
|
|
Tucker::kGameFlagEncodedData,
|
2019-09-27 22:40:54 +00:00
|
|
|
GUIO1(GUIO_NOMIDI)
|
2008-11-30 11:30:29 +00:00
|
|
|
},
|
2008-12-16 22:05:16 +00:00
|
|
|
{
|
|
|
|
"tucker",
|
|
|
|
"",
|
|
|
|
AD_ENTRY1s("infobar.txt", "5f85285bbc23ce57cbc164021ee1f23c", 525),
|
|
|
|
Common::PL_POL,
|
2013-05-02 22:26:58 +00:00
|
|
|
Common::kPlatformDOS,
|
2008-12-17 21:29:56 +00:00
|
|
|
0,
|
2019-09-27 22:40:54 +00:00
|
|
|
GUIO1(GUIO_NOMIDI)
|
2008-12-16 22:05:16 +00:00
|
|
|
},
|
2008-12-16 22:09:55 +00:00
|
|
|
{
|
|
|
|
"tucker",
|
|
|
|
"",
|
|
|
|
AD_ENTRY1s("infobar.txt", "e548994877ff31ca304f6352ce022a8e", 497),
|
|
|
|
Common::CZ_CZE,
|
2013-05-02 22:26:58 +00:00
|
|
|
Common::kPlatformDOS,
|
2009-06-06 17:56:41 +00:00
|
|
|
Tucker::kGameFlagEncodedData,
|
2019-09-27 22:40:54 +00:00
|
|
|
GUIO1(GUIO_NOMIDI)
|
2008-12-16 22:09:55 +00:00
|
|
|
},
|
2018-12-30 18:52:27 +00:00
|
|
|
{ // Russian fan translation
|
|
|
|
"tucker",
|
|
|
|
"",
|
|
|
|
AD_ENTRY1s("infobrgr.txt", "4b5a315e449a7f9eaf2025ec87466cd8", 552),
|
|
|
|
Common::RU_RUS,
|
|
|
|
Common::kPlatformDOS,
|
|
|
|
Tucker::kGameFlagEncodedData,
|
2019-09-27 22:40:54 +00:00
|
|
|
GUIO1(GUIO_NOMIDI)
|
2018-12-30 18:52:27 +00:00
|
|
|
},
|
2009-01-24 21:03:44 +00:00
|
|
|
{
|
|
|
|
"tucker",
|
|
|
|
"Demo",
|
|
|
|
AD_ENTRY1s("infobar.txt", "010b055de42097b140d5bcb6e95a5c7c", 203),
|
|
|
|
Common::EN_ANY,
|
2013-05-02 22:26:58 +00:00
|
|
|
Common::kPlatformDOS,
|
2009-01-29 22:13:01 +00:00
|
|
|
ADGF_DEMO | Tucker::kGameFlagDemo,
|
2019-09-27 22:40:54 +00:00
|
|
|
GUIO1(GUIO_NOMIDI)
|
2009-01-24 21:03:44 +00:00
|
|
|
},
|
2008-11-10 20:38:54 +00:00
|
|
|
AD_TABLE_END_MARKER
|
|
|
|
};
|
|
|
|
|
2009-01-29 22:13:01 +00:00
|
|
|
static const ADGameDescription tuckerDemoGameDescription = {
|
2008-12-03 22:15:05 +00:00
|
|
|
"tucker",
|
2009-01-24 21:03:44 +00:00
|
|
|
"Non-Interactive Demo",
|
2008-12-03 22:15:05 +00:00
|
|
|
AD_ENTRY1(0, 0),
|
|
|
|
Common::EN_ANY,
|
2013-05-02 22:26:58 +00:00
|
|
|
Common::kPlatformDOS,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_DEMO | Tucker::kGameFlagDemo | Tucker::kGameFlagIntroOnly,
|
2019-09-27 22:40:54 +00:00
|
|
|
GUIO1(GUIO_NOMIDI)
|
2008-12-03 22:15:05 +00:00
|
|
|
};
|
|
|
|
|
2020-10-02 06:55:08 +00:00
|
|
|
class TuckerMetaEngineStatic : public AdvancedMetaEngineStatic {
|
2008-11-10 20:38:54 +00:00
|
|
|
public:
|
2020-10-02 06:55:08 +00:00
|
|
|
TuckerMetaEngineStatic() : AdvancedMetaEngineStatic(tuckerGameDescriptions, sizeof(ADGameDescription), tuckerGames) {
|
2011-06-11 15:52:32 +00:00
|
|
|
_md5Bytes = 512;
|
2008-11-10 20:38:54 +00:00
|
|
|
}
|
|
|
|
|
2020-01-31 13:35:04 +00:00
|
|
|
const char *getEngineId() const override {
|
2016-09-15 16:23:35 +00:00
|
|
|
return "tucker";
|
|
|
|
}
|
|
|
|
|
2020-02-09 11:05:33 +00:00
|
|
|
const char *getName() const override {
|
2016-09-15 18:04:14 +00:00
|
|
|
return "Bud Tucker in Double Trouble";
|
2008-11-10 20:38:54 +00:00
|
|
|
}
|
|
|
|
|
2020-02-09 11:05:33 +00:00
|
|
|
const char *getOriginalCopyright() const override {
|
2008-11-10 20:38:54 +00:00
|
|
|
return "Bud Tucker in Double Trouble (C) Merit Studios";
|
|
|
|
}
|
|
|
|
|
2020-02-09 11:05:33 +00:00
|
|
|
ADDetectedGame fallbackDetect(const FileMap &allFiles, const Common::FSList &fslist) const override {
|
2008-12-03 22:15:05 +00:00
|
|
|
for (Common::FSList::const_iterator d = fslist.begin(); d != fslist.end(); ++d) {
|
|
|
|
Common::FSList audiofslist;
|
2008-12-13 09:39:00 +00:00
|
|
|
if (d->isDirectory() && d->getName().equalsIgnoreCase("audio") && d->getChildren(audiofslist, Common::FSNode::kListFilesOnly)) {
|
2008-12-03 22:15:05 +00:00
|
|
|
for (Common::FSList::const_iterator f = audiofslist.begin(); f != audiofslist.end(); ++f) {
|
2008-12-13 09:39:00 +00:00
|
|
|
if (!f->isDirectory() && f->getName().equalsIgnoreCase("demorolc.raw")) {
|
2017-12-02 16:14:22 +00:00
|
|
|
return ADDetectedGame(&tuckerDemoGameDescription);
|
2008-12-03 22:15:05 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-12-02 16:14:22 +00:00
|
|
|
|
|
|
|
return ADDetectedGame();
|
2008-12-03 22:15:05 +00:00
|
|
|
}
|
|
|
|
|
2008-11-10 20:38:54 +00:00
|
|
|
};
|
|
|
|
|
2020-10-02 06:55:08 +00:00
|
|
|
REGISTER_PLUGIN_STATIC(TUCKER_DETECTION, PLUGIN_TYPE_METAENGINE, TuckerMetaEngineStatic);
|