2007-05-30 21:56:52 +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.
|
2006-11-03 21:23:07 +00: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 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2014-02-18 02:34:26 +01:00
|
|
|
*
|
2006-11-03 21:23:07 +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:26 +01:00
|
|
|
*
|
2006-11-03 21:23:07 +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.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2009-01-29 22:13:01 +00:00
|
|
|
#include "engines/advancedDetector.h"
|
2006-11-03 21:23:07 +00:00
|
|
|
|
|
|
|
#include "base/plugins.h"
|
2021-05-16 21:11:54 +08:00
|
|
|
#include "touche/touche.h"
|
2006-11-03 21:23:07 +00:00
|
|
|
|
2007-01-30 00:24:09 +00:00
|
|
|
static const PlainGameDescriptor toucheGames[] = {
|
2007-03-08 21:34:35 +00:00
|
|
|
{ "touche", "Touche: The Adventures of the Fifth Musketeer" },
|
|
|
|
{ 0, 0 }
|
2006-11-03 21:23:07 +00:00
|
|
|
};
|
|
|
|
|
2021-05-16 21:11:54 +08:00
|
|
|
static const DebugChannelDef debugFlagList[] = {
|
|
|
|
{Touche::kDebugEngine, "Engine", "Engine debug level"},
|
|
|
|
{Touche::kDebugGraphics, "Graphics", "Graphics debug level"},
|
|
|
|
{Touche::kDebugResource, "Resource", "Resource debug level"},
|
|
|
|
{Touche::kDebugOpcodes, "Opcodes", "Opcodes debug level"},
|
|
|
|
{Touche::kDebugMenu, "Menu", "Menu debug level"},
|
|
|
|
{Touche::kDebugCharset, "Charset", "Charset debug level"},
|
|
|
|
DEBUG_CHANNEL_END
|
|
|
|
};
|
|
|
|
|
2007-01-30 00:24:09 +00:00
|
|
|
namespace Touche {
|
|
|
|
|
2009-01-29 22:13:01 +00:00
|
|
|
static const ADGameDescription gameDescriptions[] = {
|
2006-11-25 00:31:51 +00:00
|
|
|
{ // retail version
|
2007-01-30 00:24:09 +00:00
|
|
|
"touche",
|
|
|
|
"",
|
|
|
|
AD_ENTRY1s("touche.dat", "2af0177f8887e3430f345e6b4d8b1414", 26350211),
|
2006-11-03 21:23:07 +00:00
|
|
|
Common::EN_ANY,
|
2013-05-02 18:26:58 -04:00
|
|
|
Common::kPlatformDOS,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_NO_FLAGS,
|
2011-11-16 22:38:58 +01:00
|
|
|
GUIO0()
|
2006-11-03 21:23:07 +00:00
|
|
|
},
|
2021-02-28 01:28:23 -08:00
|
|
|
{ // retail version - tracker item #2923
|
2007-01-30 00:24:09 +00:00
|
|
|
"touche",
|
|
|
|
"",
|
|
|
|
AD_ENTRY1s("touche.dat", "95967f0b51d2e813e99ca00325098340", 26350190),
|
2006-11-25 00:31:51 +00:00
|
|
|
Common::EN_ANY,
|
2013-05-02 18:26:58 -04:00
|
|
|
Common::kPlatformDOS,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_NO_FLAGS,
|
2011-11-16 22:38:58 +01:00
|
|
|
GUIO0()
|
2006-11-23 22:55:05 +00:00
|
|
|
},
|
2006-11-25 00:31:51 +00:00
|
|
|
{ // retail version
|
2007-03-08 21:34:35 +00:00
|
|
|
"touche",
|
2007-01-30 00:24:09 +00:00
|
|
|
"",
|
|
|
|
AD_ENTRY1s("touche.dat", "1caa20bb4d4fc2ce8eb867b6610082b3", 26558232),
|
2006-11-03 21:23:07 +00:00
|
|
|
Common::FR_FRA,
|
2013-05-02 18:26:58 -04:00
|
|
|
Common::kPlatformDOS,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_NO_FLAGS,
|
2011-11-16 22:38:58 +01:00
|
|
|
GUIO0()
|
2006-11-18 11:57:25 +00:00
|
|
|
},
|
2021-02-28 01:28:23 -08:00
|
|
|
{ // retail version - tracker item #2912
|
2007-03-08 21:34:35 +00:00
|
|
|
"touche",
|
2007-01-30 00:24:09 +00:00
|
|
|
"",
|
|
|
|
AD_ENTRY1s("touche.dat", "be2ae6454b3325e410946f2322547cd4", 26625537),
|
2006-11-18 11:57:25 +00:00
|
|
|
Common::DE_DEU,
|
2013-05-02 18:26:58 -04:00
|
|
|
Common::kPlatformDOS,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_NO_FLAGS,
|
2011-11-16 22:38:58 +01:00
|
|
|
GUIO0()
|
2006-11-25 00:31:51 +00:00
|
|
|
},
|
2021-02-28 01:28:23 -08:00
|
|
|
{ // retail version - tracker item #3121
|
2007-03-16 22:51:03 +00:00
|
|
|
"touche",
|
|
|
|
"",
|
|
|
|
AD_ENTRY1s("touche.dat", "64e95ba1decf5a5a60f8fa1840f40c62", 26529523),
|
|
|
|
Common::ES_ESP,
|
2013-05-02 18:26:58 -04:00
|
|
|
Common::kPlatformDOS,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_NO_FLAGS,
|
2011-11-16 22:38:58 +01:00
|
|
|
GUIO0()
|
2007-03-16 22:51:03 +00:00
|
|
|
},
|
2021-02-28 01:28:23 -08:00
|
|
|
{ // fan-made translation (http://www.iagtg.net/) - tracker item #2927
|
2007-03-08 21:34:35 +00:00
|
|
|
"touche",
|
2007-01-30 00:24:09 +00:00
|
|
|
"",
|
|
|
|
AD_ENTRY1s("touche.dat", "1f442331d4b327c3488a9f6ffe9bdd25", 26367792),
|
2006-11-25 00:31:51 +00:00
|
|
|
Common::IT_ITA,
|
2013-05-02 18:26:58 -04:00
|
|
|
Common::kPlatformDOS,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_NO_FLAGS,
|
2011-11-16 22:38:58 +01:00
|
|
|
GUIO0()
|
2006-12-14 12:41:55 +00:00
|
|
|
},
|
2021-02-28 01:28:23 -08:00
|
|
|
{ // retail version - tracker item #3409
|
2007-09-26 19:18:47 +00:00
|
|
|
"touche",
|
|
|
|
"",
|
|
|
|
AD_ENTRY1s("touche.dat", "42d19a0bef65465109020440a9caa228", 26487370),
|
|
|
|
Common::PL_POL,
|
2013-05-02 18:26:58 -04:00
|
|
|
Common::kPlatformDOS,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_NO_FLAGS,
|
2011-11-16 22:38:58 +01:00
|
|
|
GUIO0()
|
2007-09-26 19:18:47 +00:00
|
|
|
},
|
2007-01-21 22:06:54 +00:00
|
|
|
{ // demo version
|
2007-01-30 00:24:09 +00:00
|
|
|
"touche",
|
|
|
|
"Demo",
|
|
|
|
AD_ENTRY1s("touche.dat", "ddaed436445b2e77294ed19e8ae4aa2c", 8720683),
|
2006-12-14 12:41:55 +00:00
|
|
|
Common::EN_ANY,
|
2013-05-02 18:26:58 -04:00
|
|
|
Common::kPlatformDOS,
|
2009-06-06 17:56:41 +00:00
|
|
|
ADGF_DEMO,
|
2011-11-16 22:38:58 +01:00
|
|
|
GUIO0()
|
2007-01-30 00:24:09 +00:00
|
|
|
},
|
2007-02-13 01:28:18 +00:00
|
|
|
AD_TABLE_END_MARKER
|
2006-11-03 21:23:07 +00:00
|
|
|
};
|
|
|
|
|
2009-01-29 22:13:01 +00:00
|
|
|
static const ADFileBasedFallback fileBasedFallback[] = {
|
2007-03-08 21:34:35 +00:00
|
|
|
{ &gameDescriptions[0], { "touche.dat", 0 } }, // default to english version
|
|
|
|
{ 0, { 0 } }
|
|
|
|
};
|
|
|
|
|
2007-11-03 21:06:58 +00:00
|
|
|
} // End of namespace Touche
|
2007-01-30 00:24:09 +00:00
|
|
|
|
2010-06-17 13:42:02 +00:00
|
|
|
static const char *directoryGlobs[] = {
|
|
|
|
"database",
|
|
|
|
0
|
|
|
|
};
|
|
|
|
|
2020-10-11 23:14:39 +02:00
|
|
|
class ToucheMetaEngineDetection : public AdvancedMetaEngineDetection {
|
2008-02-02 00:54:52 +00:00
|
|
|
public:
|
2020-10-11 23:14:39 +02:00
|
|
|
ToucheMetaEngineDetection() : AdvancedMetaEngineDetection(Touche::gameDescriptions, sizeof(ADGameDescription), toucheGames) {
|
2011-06-11 17:52:32 +02:00
|
|
|
_md5Bytes = 4096;
|
|
|
|
_maxScanDepth = 2;
|
|
|
|
_directoryGlobs = directoryGlobs;
|
2011-06-10 15:53:57 +02:00
|
|
|
}
|
2011-06-14 18:11:14 +02:00
|
|
|
|
2021-06-10 20:33:00 +08:00
|
|
|
ADDetectedGame fallbackDetect(const FileMap &allFiles, const Common::FSList &fslist, ADDetectedGameExtraInfo **extra) const override {
|
2020-09-12 07:00:53 +02:00
|
|
|
return detectGameFilebased(allFiles, Touche::fileBasedFallback);
|
2011-06-14 18:11:14 +02:00
|
|
|
}
|
|
|
|
|
2020-01-31 14:33:11 +01:00
|
|
|
const char *getEngineId() const override {
|
2016-09-15 18:23:35 +02:00
|
|
|
return "touche";
|
|
|
|
}
|
|
|
|
|
2020-02-09 12:05:33 +01:00
|
|
|
const char *getName() const override {
|
2016-09-15 20:04:14 +02:00
|
|
|
return "Touche: The Adventures of the Fifth Musketeer";
|
2008-02-02 00:54:52 +00:00
|
|
|
}
|
2008-02-08 00:02:23 +00:00
|
|
|
|
2020-02-09 12:05:33 +01:00
|
|
|
const char *getOriginalCopyright() const override {
|
2016-09-15 20:04:14 +02:00
|
|
|
return "Touche: The Adventures of the Fifth Musketeer (C) Clipper Software";
|
2008-02-02 00:54:52 +00:00
|
|
|
}
|
2021-05-16 21:11:54 +08:00
|
|
|
|
|
|
|
const DebugChannelDef *getDebugChannels() const override {
|
|
|
|
return debugFlagList;
|
|
|
|
}
|
2008-02-02 00:54:52 +00:00
|
|
|
};
|
|
|
|
|
2020-10-11 23:14:39 +02:00
|
|
|
REGISTER_PLUGIN_STATIC(TOUCHE_DETECTION, PLUGIN_TYPE_ENGINE_DETECTION, ToucheMetaEngineDetection);
|