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 17:47:58 +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 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
2014-02-18 01:34:26 +00: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 01:34:26 +00:00
|
|
|
*
|
2008-08-04 11:28:57 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
2021-12-26 17:47:58 +00: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 14:48:52 +00:00
|
|
|
|
2022-06-24 09:30:30 +00:00
|
|
|
#include "common/config-manager.h"
|
2013-01-02 14:48:52 +00: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 08:22:43 +00:00
|
|
|
#include "toltecs/detection.h"
|
2008-08-04 11:28:57 +00:00
|
|
|
|
2022-06-27 12:54:06 +00:00
|
|
|
#define GAMEOPTION_ORIGINAL_SAVELOAD GUIO_GAMEOPTIONS1
|
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 22:26:58 +00:00
|
|
|
Common::kPlatformDOS,
|
2009-12-15 08:26:46 +00:00
|
|
|
ADGF_NO_FLAGS,
|
2022-06-27 12:54:06 +00:00
|
|
|
GUIO1(GAMEOPTION_ORIGINAL_SAVELOAD)
|
2008-08-04 11:28:57 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2013-09-02 10:58:46 +00:00
|
|
|
{
|
|
|
|
// 3 Skulls of the Toltecs English version (alternate)
|
2021-02-28 09:28:23 +00:00
|
|
|
// From bug #6393
|
2013-09-02 10:58:46 +00:00
|
|
|
{
|
|
|
|
"toltecs",
|
|
|
|
0,
|
|
|
|
AD_ENTRY1s("WESTERN", "a9c9cfef9d05b8f7a5573b626fa4ea87", 337643527),
|
|
|
|
Common::EN_ANY,
|
|
|
|
Common::kPlatformDOS,
|
|
|
|
ADGF_NO_FLAGS,
|
2022-06-27 12:54:06 +00:00
|
|
|
GUIO1(GAMEOPTION_ORIGINAL_SAVELOAD)
|
2013-09-02 10:58:46 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2014-08-06 12:07:31 +00: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,
|
2022-06-27 12:54:06 +00:00
|
|
|
GUIO1(GAMEOPTION_ORIGINAL_SAVELOAD)
|
2014-08-06 12:07:31 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
|
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 22:26:58 +00:00
|
|
|
Common::kPlatformDOS,
|
2009-12-15 08:26:46 +00:00
|
|
|
ADGF_NO_FLAGS,
|
2022-06-27 12:54:06 +00:00
|
|
|
GUIO1(GAMEOPTION_ORIGINAL_SAVELOAD)
|
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 22:26:58 +00:00
|
|
|
Common::kPlatformDOS,
|
2009-12-15 08:26:46 +00:00
|
|
|
ADGF_NO_FLAGS,
|
2022-06-27 12:54:06 +00:00
|
|
|
GUIO1(GAMEOPTION_ORIGINAL_SAVELOAD)
|
2009-02-09 17:41:24 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2019-09-22 23:31:40 +00: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,
|
2022-06-27 12:54:06 +00:00
|
|
|
GUIO1(GAMEOPTION_ORIGINAL_SAVELOAD)
|
2019-09-22 23:31:40 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
|
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 22:26:58 +00:00
|
|
|
Common::kPlatformDOS,
|
2010-06-02 08:50:46 +00:00
|
|
|
ADGF_NO_FLAGS,
|
2022-06-27 12:54:06 +00:00
|
|
|
GUIO1(GAMEOPTION_ORIGINAL_SAVELOAD)
|
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 22:26:58 +00:00
|
|
|
Common::kPlatformDOS,
|
2010-06-02 08:50:46 +00:00
|
|
|
ADGF_NO_FLAGS,
|
2022-06-27 12:54:06 +00:00
|
|
|
GUIO1(GAMEOPTION_ORIGINAL_SAVELOAD)
|
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 09:28:23 +00: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 22:26:58 +00:00
|
|
|
Common::kPlatformDOS,
|
2011-11-25 13:50:48 +00:00
|
|
|
ADGF_NO_FLAGS,
|
2022-06-27 12:54:06 +00:00
|
|
|
GUIO1(GAMEOPTION_ORIGINAL_SAVELOAD)
|
2011-11-25 13:50:48 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2019-11-13 00:46:31 +00:00
|
|
|
{
|
|
|
|
// 3 Skulls of the Toltecs Czech version
|
|
|
|
// Reported by AfBu in Trac#11263
|
|
|
|
{
|
|
|
|
"toltecs",
|
|
|
|
0,
|
2020-11-28 15:36:48 +00:00
|
|
|
AD_ENTRY1s("WESTERN", "57503131c0217c76b07d0b5c14805631", 337644552),
|
2022-01-30 23:43:35 +00:00
|
|
|
Common::CS_CZE,
|
2020-11-28 15:36:48 +00:00
|
|
|
Common::kPlatformDOS,
|
|
|
|
ADGF_NO_FLAGS,
|
2022-06-27 12:54:06 +00:00
|
|
|
GUIO1(GAMEOPTION_ORIGINAL_SAVELOAD)
|
2019-11-13 00:46:31 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2013-01-06 18:43:23 +00:00
|
|
|
{
|
|
|
|
// 3 Skulls of the Toltecs English Demo version
|
|
|
|
{
|
|
|
|
"toltecs",
|
2022-07-19 12:57:52 +00:00
|
|
|
"Demo",
|
2013-01-06 18:43:23 +00:00
|
|
|
AD_ENTRY1s("WESTERN", "53a0abd1c0bc5cad8ba18f0e56877705", 46241833),
|
|
|
|
Common::EN_ANY,
|
2013-05-02 22:26:58 +00:00
|
|
|
Common::kPlatformDOS,
|
2013-01-06 18:43:23 +00:00
|
|
|
ADGF_DEMO,
|
2022-06-27 12:54:06 +00:00
|
|
|
GUIO1(GAMEOPTION_ORIGINAL_SAVELOAD)
|
2013-01-06 18:43:23 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
// 3 Skulls of the Toltecs German Demo version
|
|
|
|
{
|
|
|
|
"toltecs",
|
2022-07-19 12:57:52 +00:00
|
|
|
"Demo",
|
2013-01-06 18:43:23 +00:00
|
|
|
AD_ENTRY1s("WESTERN", "1c85e82712d24f1d5c1ea2a66ddd75c2", 47730038),
|
|
|
|
Common::DE_DEU,
|
2013-05-02 22:26:58 +00:00
|
|
|
Common::kPlatformDOS,
|
2013-01-06 18:43:23 +00:00
|
|
|
ADGF_DEMO,
|
2022-06-27 12:54:06 +00:00
|
|
|
GUIO1(GAMEOPTION_ORIGINAL_SAVELOAD)
|
2013-01-06 18:43:23 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2022-06-24 09:30:30 +00:00
|
|
|
{
|
|
|
|
// Fenimore Fillmore: 3 Skulls of the Toltecs, 2019 Casual Brothers remaster (GOG, Steam)
|
|
|
|
{
|
|
|
|
"toltecs",
|
|
|
|
_s("Missing game code"), // Reason for being unsupported
|
|
|
|
AD_ENTRY1s("RData.lzma", "e0adae53ab5e821595a64032a4c2d5bc", 653477695),
|
|
|
|
Common::UNK_LANG,
|
|
|
|
Common::kPlatformWindows,
|
|
|
|
ADGF_REMASTERED | ADGF_UNSUPPORTED,
|
|
|
|
GUIO1(GUIO_NONE)
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2008-08-04 11:28:57 +00:00
|
|
|
{ AD_TABLE_END_MARKER }
|
|
|
|
};
|
|
|
|
|
2022-06-27 12:54:06 +00:00
|
|
|
static const ADExtraGuiOptionsMap optionsList[] = {
|
|
|
|
{
|
|
|
|
GAMEOPTION_ORIGINAL_SAVELOAD,
|
|
|
|
{
|
|
|
|
_s("Use original save/load screens"),
|
|
|
|
_s("Use the original save/load screens instead of the ScummVM ones"),
|
|
|
|
"originalsaveload",
|
|
|
|
false,
|
|
|
|
0,
|
|
|
|
0
|
|
|
|
}
|
|
|
|
},
|
|
|
|
AD_EXTRA_GUI_OPTIONS_TERMINATOR
|
2013-01-02 14:48:52 +00:00
|
|
|
};
|
|
|
|
|
2022-06-27 12:54:06 +00:00
|
|
|
} // End of namespace Toltecs
|
|
|
|
|
2020-10-11 21:14:39 +00:00
|
|
|
class ToltecsMetaEngineDetection : public AdvancedMetaEngineDetection {
|
2008-08-04 11:28:57 +00:00
|
|
|
public:
|
2022-06-27 12:54:06 +00:00
|
|
|
ToltecsMetaEngineDetection() : AdvancedMetaEngineDetection(Toltecs::gameDescriptions, sizeof(Toltecs::ToltecsGameDescription), toltecsGames, Toltecs::optionsList) {
|
2011-06-11 04:28:42 +00:00
|
|
|
}
|
2008-08-04 11:28:57 +00:00
|
|
|
|
2022-01-13 20:34:25 +00:00
|
|
|
const char *getName() const override {
|
2016-09-15 16:23:35 +00:00
|
|
|
return "toltecs";
|
|
|
|
}
|
|
|
|
|
2022-01-13 20:34:25 +00:00
|
|
|
const char *getEngineName() const override {
|
2016-09-15 18:04:14 +00:00
|
|
|
return "3 Skulls of the Toltecs";
|
2008-08-04 11:28:57 +00:00
|
|
|
}
|
|
|
|
|
2020-02-09 11:05:33 +00:00
|
|
|
const char *getOriginalCopyright() const override {
|
2016-09-15 18:04:14 +00:00
|
|
|
return "3 Skulls of the Toltecs (C) Revistronic 1996";
|
2008-08-04 11:28:57 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2020-10-11 21:14:39 +00:00
|
|
|
REGISTER_PLUGIN_STATIC(TOLTECS_DETECTION, PLUGIN_TYPE_ENGINE_DETECTION, ToltecsMetaEngineDetection);
|