2008-08-04 11:28:57 +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.
|
|
|
|
*
|
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-02-18 02:34:26 +01:00
|
|
|
*
|
2008-08-04 11:28:57 +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
|
|
|
*
|
2008-08-04 11:28:57 +00:00
|
|
|
* 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/>.
|
2008-08-04 11:28:57 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "base/plugins.h"
|
|
|
|
|
2009-01-30 21:23:36 +00:00
|
|
|
#include "engines/advancedDetector.h"
|
2013-01-02 16:48:52 +02:00
|
|
|
|
|
|
|
#include "common/translation.h"
|
2010-12-05 13:30:14 +00:00
|
|
|
#include "common/savefile.h"
|
|
|
|
#include "common/str-array.h"
|
|
|
|
#include "common/system.h"
|
2008-08-04 11:28:57 +00:00
|
|
|
|
|
|
|
#include "toltecs/toltecs.h"
|
2020-08-25 13:52:43 +05:30
|
|
|
#include "toltecs/detection.h"
|
2008-08-04 11:28:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
static const PlainGameDescriptor toltecsGames[] = {
|
|
|
|
{"toltecs", "3 Skulls of the Toltecs"},
|
|
|
|
{0, 0}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
namespace Toltecs {
|
|
|
|
|
|
|
|
static const ToltecsGameDescription gameDescriptions[] = {
|
|
|
|
|
|
|
|
{
|
2008-11-13 00:16:13 +00:00
|
|
|
// 3 Skulls of the Toltecs English version
|
2008-08-04 11:28:57 +00:00
|
|
|
{
|
|
|
|
"toltecs",
|
|
|
|
0,
|
|
|
|
AD_ENTRY1s("WESTERN", "05472037e9cfde146e953c434e74f0f4", 337643527),
|
|
|
|
Common::EN_ANY,
|
2013-05-02 18:26:58 -04:00
|
|
|
Common::kPlatformDOS,
|
2009-12-15 08:26:46 +00:00
|
|
|
ADGF_NO_FLAGS,
|
2011-10-23 17:52:08 +00:00
|
|
|
GUIO1(GUIO_NONE)
|
2008-08-04 11:28:57 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2013-09-02 13:58:46 +03:00
|
|
|
{
|
|
|
|
// 3 Skulls of the Toltecs English version (alternate)
|
2021-02-28 01:28:23 -08:00
|
|
|
// From bug #6393
|
2013-09-02 13:58:46 +03:00
|
|
|
{
|
|
|
|
"toltecs",
|
|
|
|
0,
|
|
|
|
AD_ENTRY1s("WESTERN", "a9c9cfef9d05b8f7a5573b626fa4ea87", 337643527),
|
|
|
|
Common::EN_ANY,
|
|
|
|
Common::kPlatformDOS,
|
|
|
|
ADGF_NO_FLAGS,
|
|
|
|
GUIO1(GUIO_NONE)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2014-08-06 15:07:31 +03:00
|
|
|
{
|
|
|
|
// 3 Skulls of the Toltecs PIRATE CD-RIP version (no audio)
|
|
|
|
// == DO NOT RE-ADD ==
|
|
|
|
{
|
|
|
|
"toltecs",
|
|
|
|
0,
|
|
|
|
AD_ENTRY1s("WESTERN", "56d0da91ec3db8ac869594357584e851", 104804435),
|
|
|
|
Common::EN_ANY,
|
|
|
|
Common::kPlatformDOS,
|
|
|
|
ADGF_PIRATED,
|
|
|
|
GUIO1(GUIO_NONE)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2008-09-07 11:50:54 +00:00
|
|
|
{
|
2008-11-13 00:16:13 +00:00
|
|
|
// 3 Skulls of the Toltecs Russian version
|
2008-09-07 11:50:54 +00:00
|
|
|
{
|
|
|
|
"toltecs",
|
|
|
|
0,
|
|
|
|
AD_ENTRY1s("WESTERN", "ba1742d3193b68ceb9434e2ab7a09a9b", 391462783),
|
|
|
|
Common::RU_RUS,
|
2013-05-02 18:26:58 -04:00
|
|
|
Common::kPlatformDOS,
|
2009-12-15 08:26:46 +00:00
|
|
|
ADGF_NO_FLAGS,
|
2011-10-23 17:52:08 +00:00
|
|
|
GUIO1(GUIO_NONE)
|
2008-09-07 11:50:54 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2009-02-09 17:41:24 +00:00
|
|
|
{
|
|
|
|
// 3 Skulls of the Toltecs German version
|
|
|
|
{
|
|
|
|
"toltecs",
|
|
|
|
0,
|
|
|
|
AD_ENTRY1s("WESTERN", "1a3292bad8e0bb5701800c73531dd75e", 345176617),
|
|
|
|
Common::DE_DEU,
|
2013-05-02 18:26:58 -04:00
|
|
|
Common::kPlatformDOS,
|
2009-12-15 08:26:46 +00:00
|
|
|
ADGF_NO_FLAGS,
|
2011-10-23 17:52:08 +00:00
|
|
|
GUIO1(GUIO_NONE)
|
2009-02-09 17:41:24 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2019-09-23 01:31:40 +02:00
|
|
|
{
|
|
|
|
// 3 Skulls of the Toltecs Polish version
|
|
|
|
// Reported by cachaito in Trac#11134
|
|
|
|
{
|
|
|
|
"toltecs",
|
|
|
|
0,
|
|
|
|
AD_ENTRY1s("WESTERN", "8ec48dd4e52a822d314418f1d3284e64", 337646148),
|
|
|
|
Common::PL_POL,
|
|
|
|
Common::kPlatformDOS,
|
|
|
|
ADGF_NO_FLAGS,
|
|
|
|
GUIO1(GUIO_NONE)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2010-06-02 08:50:46 +00:00
|
|
|
{
|
|
|
|
// 3 Skulls of the Toltecs French version
|
|
|
|
{
|
|
|
|
"toltecs",
|
|
|
|
0,
|
|
|
|
AD_ENTRY1s("WESTERN", "4fb845635cbdac732453fe23be350df9", 327269545),
|
|
|
|
Common::FR_FRA,
|
2013-05-02 18:26:58 -04:00
|
|
|
Common::kPlatformDOS,
|
2010-06-02 08:50:46 +00:00
|
|
|
ADGF_NO_FLAGS,
|
2011-10-23 17:52:08 +00:00
|
|
|
GUIO1(GUIO_NONE)
|
2010-06-02 08:50:46 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
// 3 Skulls of the Toltecs Spanish version
|
|
|
|
{
|
|
|
|
"toltecs",
|
|
|
|
0,
|
|
|
|
AD_ENTRY1s("WESTERN", "479f468beccc1b0ce5873ec523d1380e", 308391018),
|
|
|
|
Common::ES_ESP,
|
2013-05-02 18:26:58 -04:00
|
|
|
Common::kPlatformDOS,
|
2010-06-02 08:50:46 +00:00
|
|
|
ADGF_NO_FLAGS,
|
2011-10-23 17:52:08 +00:00
|
|
|
GUIO1(GUIO_NONE)
|
2010-06-02 08:50:46 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2011-11-25 13:50:48 +00:00
|
|
|
{
|
|
|
|
// 3 Skulls of the Toltecs Hungarian version
|
2021-02-28 01:28:23 -08:00
|
|
|
// From bug #5902
|
2011-11-25 13:50:48 +00:00
|
|
|
{
|
|
|
|
"toltecs",
|
|
|
|
0,
|
|
|
|
AD_ENTRY1s("WESTERN", "69a5572e75409d8c6230b787faa353af", 337647960),
|
|
|
|
Common::HU_HUN,
|
2013-05-02 18:26:58 -04:00
|
|
|
Common::kPlatformDOS,
|
2011-11-25 13:50:48 +00:00
|
|
|
ADGF_NO_FLAGS,
|
|
|
|
GUIO1(GUIO_NONE)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2019-11-13 01:46:31 +01:00
|
|
|
{
|
|
|
|
// 3 Skulls of the Toltecs Czech version
|
|
|
|
// Reported by AfBu in Trac#11263
|
|
|
|
{
|
|
|
|
"toltecs",
|
|
|
|
0,
|
2020-11-28 16:36:48 +01:00
|
|
|
AD_ENTRY1s("WESTERN", "57503131c0217c76b07d0b5c14805631", 337644552),
|
2022-01-30 18:43:35 -05:00
|
|
|
Common::CS_CZE,
|
2020-11-28 16:36:48 +01:00
|
|
|
Common::kPlatformDOS,
|
|
|
|
ADGF_NO_FLAGS,
|
|
|
|
GUIO1(GUIO_NONE)
|
2019-11-13 01:46:31 +01:00
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2013-01-06 20:43:23 +02:00
|
|
|
{
|
|
|
|
// 3 Skulls of the Toltecs English Demo version
|
|
|
|
{
|
|
|
|
"toltecs",
|
|
|
|
0,
|
|
|
|
AD_ENTRY1s("WESTERN", "53a0abd1c0bc5cad8ba18f0e56877705", 46241833),
|
|
|
|
Common::EN_ANY,
|
2013-05-02 18:26:58 -04:00
|
|
|
Common::kPlatformDOS,
|
2013-01-06 20:43:23 +02:00
|
|
|
ADGF_DEMO,
|
|
|
|
GUIO1(GUIO_NONE)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
// 3 Skulls of the Toltecs German Demo version
|
|
|
|
{
|
|
|
|
"toltecs",
|
|
|
|
0,
|
|
|
|
AD_ENTRY1s("WESTERN", "1c85e82712d24f1d5c1ea2a66ddd75c2", 47730038),
|
|
|
|
Common::DE_DEU,
|
2013-05-02 18:26:58 -04:00
|
|
|
Common::kPlatformDOS,
|
2013-01-06 20:43:23 +02:00
|
|
|
ADGF_DEMO,
|
|
|
|
GUIO1(GUIO_NONE)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2008-08-04 11:28:57 +00:00
|
|
|
{ AD_TABLE_END_MARKER }
|
|
|
|
};
|
|
|
|
|
|
|
|
} // End of namespace Toltecs
|
|
|
|
|
2013-01-02 16:48:52 +02:00
|
|
|
static const ExtraGuiOption toltecsExtraGuiOption = {
|
|
|
|
_s("Use original save/load screens"),
|
2016-11-29 20:02:50 +01:00
|
|
|
_s("Use the original save/load screens instead of the ScummVM ones"),
|
2013-01-02 16:48:52 +02:00
|
|
|
"originalsaveload",
|
|
|
|
false
|
|
|
|
};
|
|
|
|
|
2020-10-11 23:14:39 +02:00
|
|
|
class ToltecsMetaEngineDetection : public AdvancedMetaEngineDetection {
|
2008-08-04 11:28:57 +00:00
|
|
|
public:
|
2020-10-11 23:14:39 +02:00
|
|
|
ToltecsMetaEngineDetection() : AdvancedMetaEngineDetection(Toltecs::gameDescriptions, sizeof(Toltecs::ToltecsGameDescription), toltecsGames) {
|
2011-06-11 04:28:42 +00:00
|
|
|
}
|
2008-08-04 11:28:57 +00:00
|
|
|
|
2020-02-05 16:27:12 +01:00
|
|
|
const char *getEngineId() const override {
|
2016-09-15 18:23:35 +02:00
|
|
|
return "toltecs";
|
|
|
|
}
|
|
|
|
|
2020-02-09 12:05:33 +01:00
|
|
|
const char *getName() const override {
|
2016-09-15 20:04:14 +02:00
|
|
|
return "3 Skulls of the Toltecs";
|
2008-08-04 11:28:57 +00:00
|
|
|
}
|
|
|
|
|
2020-02-09 12:05:33 +01:00
|
|
|
const char *getOriginalCopyright() const override {
|
2016-09-15 20:04:14 +02:00
|
|
|
return "3 Skulls of the Toltecs (C) Revistronic 1996";
|
2008-08-04 11:28:57 +00:00
|
|
|
}
|
|
|
|
|
2020-02-09 12:05:33 +01:00
|
|
|
const ExtraGuiOptions getExtraGuiOptions(const Common::String &target) const override;
|
2008-08-04 11:28:57 +00:00
|
|
|
};
|
|
|
|
|
2020-10-11 23:14:39 +02:00
|
|
|
const ExtraGuiOptions ToltecsMetaEngineDetection::getExtraGuiOptions(const Common::String &target) const {
|
2013-01-02 16:48:52 +02:00
|
|
|
ExtraGuiOptions options;
|
|
|
|
options.push_back(toltecsExtraGuiOption);
|
|
|
|
return options;
|
|
|
|
}
|
|
|
|
|
2020-10-11 23:14:39 +02:00
|
|
|
REGISTER_PLUGIN_STATIC(TOLTECS_DETECTION, PLUGIN_TYPE_ENGINE_DETECTION, ToltecsMetaEngineDetection);
|