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.
|
|
|
|
|
|
|
|
* 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
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*
|
|
|
|
* $URL$
|
2006-11-05 00:20:36 +00:00
|
|
|
* $Id$
|
2006-11-03 21:23:07 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "common/config-manager.h"
|
2007-01-30 00:24:09 +00:00
|
|
|
#include "common/advancedDetector.h"
|
2006-11-03 21:23:07 +00:00
|
|
|
|
|
|
|
#include "base/plugins.h"
|
|
|
|
|
|
|
|
#include "touche/touche.h"
|
|
|
|
|
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
|
|
|
};
|
|
|
|
|
2007-01-30 00:24:09 +00:00
|
|
|
namespace Touche {
|
|
|
|
|
|
|
|
static const Common::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,
|
2007-01-30 00:24:09 +00:00
|
|
|
Common::kPlatformPC,
|
2007-02-13 13:42:28 +00:00
|
|
|
Common::ADGF_NO_FLAGS
|
2006-11-03 21:23:07 +00:00
|
|
|
},
|
2006-11-25 00:31:51 +00:00
|
|
|
{ // retail version - tracker item #1601818
|
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,
|
2007-01-30 00:24:09 +00:00
|
|
|
Common::kPlatformPC,
|
2007-02-13 13:42:28 +00:00
|
|
|
Common::ADGF_NO_FLAGS
|
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,
|
2007-01-30 00:24:09 +00:00
|
|
|
Common::kPlatformPC,
|
2007-02-13 13:42:28 +00:00
|
|
|
Common::ADGF_NO_FLAGS
|
2006-11-18 11:57:25 +00:00
|
|
|
},
|
2006-11-25 00:31:51 +00:00
|
|
|
{ // retail version - tracker item #1598643
|
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,
|
2007-01-30 00:24:09 +00:00
|
|
|
Common::kPlatformPC,
|
2007-02-13 13:42:28 +00:00
|
|
|
Common::ADGF_NO_FLAGS
|
2006-11-25 00:31:51 +00:00
|
|
|
},
|
2007-03-16 22:51:03 +00:00
|
|
|
{ // retail version - tracker item #1681643
|
|
|
|
"touche",
|
|
|
|
"",
|
|
|
|
AD_ENTRY1s("touche.dat", "64e95ba1decf5a5a60f8fa1840f40c62", 26529523),
|
|
|
|
Common::ES_ESP,
|
|
|
|
Common::kPlatformPC,
|
|
|
|
Common::ADGF_NO_FLAGS
|
|
|
|
},
|
2006-11-25 00:31:51 +00:00
|
|
|
{ // fan-made translation (http://www.iagtg.net/) - tracker item #1602360
|
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,
|
2007-01-30 00:24:09 +00:00
|
|
|
Common::kPlatformPC,
|
2007-02-13 13:42:28 +00:00
|
|
|
Common::ADGF_NO_FLAGS
|
2006-12-14 12:41:55 +00:00
|
|
|
},
|
2007-09-26 19:18:47 +00:00
|
|
|
{ // retail version - tracker item #1800500
|
|
|
|
"touche",
|
|
|
|
"",
|
|
|
|
AD_ENTRY1s("touche.dat", "42d19a0bef65465109020440a9caa228", 26487370),
|
|
|
|
Common::PL_POL,
|
|
|
|
Common::kPlatformPC,
|
|
|
|
Common::ADGF_NO_FLAGS
|
|
|
|
},
|
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,
|
2007-01-30 00:24:09 +00:00
|
|
|
Common::kPlatformPC,
|
2007-02-13 13:42:28 +00:00
|
|
|
Common::ADGF_DEMO
|
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
|
|
|
};
|
|
|
|
|
2007-03-08 21:34:35 +00:00
|
|
|
static const Common::ADFileBasedFallback fileBasedFallback[] = {
|
|
|
|
{ &gameDescriptions[0], { "touche.dat", 0 } }, // default to english version
|
|
|
|
{ 0, { 0 } }
|
|
|
|
};
|
|
|
|
|
2007-01-30 00:24:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static const Common::ADParams detectionParams = {
|
|
|
|
(const byte *)Touche::gameDescriptions,
|
|
|
|
sizeof(Common::ADGameDescription),
|
2007-03-08 21:34:35 +00:00
|
|
|
4096, // number of md5 bytes
|
2007-01-30 00:24:09 +00:00
|
|
|
toucheGames,
|
2007-03-08 21:34:35 +00:00
|
|
|
0, // no obsolete targets data
|
2007-01-30 00:24:09 +00:00
|
|
|
"touche",
|
2007-03-08 21:34:35 +00:00
|
|
|
Touche::fileBasedFallback, // file-based detection data to enable not yet known versions to start
|
|
|
|
0, // no fallback callback
|
|
|
|
Common::kADFlagAugmentPreferredTarget | Common::kADFlagPrintWarningOnFileBasedFallback
|
2006-11-03 21:23:07 +00:00
|
|
|
};
|
|
|
|
|
2007-02-13 14:55:11 +00:00
|
|
|
ADVANCED_DETECTOR_DEFINE_PLUGIN(TOUCHE, Touche::ToucheEngine, detectionParams);
|
2006-11-03 21:23:07 +00:00
|
|
|
|
2007-01-30 00:24:09 +00:00
|
|
|
REGISTER_PLUGIN(TOUCHE, "Touche Engine", "Touche: The Adventures of the 5th Musketeer (C) Clipper Software");
|
2006-11-03 21:23:07 +00:00
|
|
|
|
2007-01-30 00:24:09 +00:00
|
|
|
namespace Touche {
|
2006-11-03 21:23:07 +00:00
|
|
|
|
2007-01-30 00:24:09 +00:00
|
|
|
bool ToucheEngine::detectGame() {
|
2007-06-12 12:22:25 +00:00
|
|
|
Common::EncapsulatedADGameDesc encapsulatedDesc = Common::AdvancedDetector::detectBestMatchingGame(detectionParams);
|
|
|
|
const Common::ADGameDescription *gd = encapsulatedDesc.realDesc;
|
|
|
|
|
2007-02-13 23:37:44 +00:00
|
|
|
if (gd == 0)
|
2007-01-30 20:18:06 +00:00
|
|
|
return false;
|
2006-11-03 21:23:07 +00:00
|
|
|
|
2007-02-13 23:37:44 +00:00
|
|
|
_language = gd->language;
|
2007-01-30 00:24:09 +00:00
|
|
|
return true;
|
2006-11-03 21:23:07 +00:00
|
|
|
}
|
|
|
|
|
2007-01-30 00:24:09 +00:00
|
|
|
} // End of namespace Touche
|