scummvm/engines/toltecs/detection.cpp

260 lines
5.9 KiB
C++
Raw Normal View History

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.
*
* 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.
*
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.
*
2008-08-04 11:28:57 +00:00
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
2008-08-04 11:28:57 +00:00
*
*/
#include "base/plugins.h"
#include "engines/advancedDetector.h"
#include "common/config-manager.h"
#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"
#include "toltecs/detection.h"
2008-08-04 11:28:57 +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[] = {
{
// 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,
Common::kPlatformDOS,
ADGF_NO_FLAGS,
GUIO1(GAMEOPTION_ORIGINAL_SAVELOAD)
2008-08-04 11:28:57 +00:00
},
},
{
// 3 Skulls of the Toltecs English version (alternate)
// From bug #6393
{
"toltecs",
0,
AD_ENTRY1s("WESTERN", "a9c9cfef9d05b8f7a5573b626fa4ea87", 337643527),
Common::EN_ANY,
Common::kPlatformDOS,
ADGF_NO_FLAGS,
GUIO1(GAMEOPTION_ORIGINAL_SAVELOAD)
},
},
{
// 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(GAMEOPTION_ORIGINAL_SAVELOAD)
},
},
{
// 3 Skulls of the Toltecs Russian version
{
"toltecs",
0,
AD_ENTRY1s("WESTERN", "ba1742d3193b68ceb9434e2ab7a09a9b", 391462783),
Common::RU_RUS,
Common::kPlatformDOS,
ADGF_NO_FLAGS,
GUIO1(GAMEOPTION_ORIGINAL_SAVELOAD)
},
},
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,
Common::kPlatformDOS,
ADGF_NO_FLAGS,
GUIO1(GAMEOPTION_ORIGINAL_SAVELOAD)
2009-02-09 17:41:24 +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,
GUIO1(GAMEOPTION_ORIGINAL_SAVELOAD)
},
},
{
// 3 Skulls of the Toltecs French version
{
"toltecs",
0,
AD_ENTRY1s("WESTERN", "4fb845635cbdac732453fe23be350df9", 327269545),
Common::FR_FRA,
Common::kPlatformDOS,
ADGF_NO_FLAGS,
GUIO1(GAMEOPTION_ORIGINAL_SAVELOAD)
},
},
{
// 3 Skulls of the Toltecs Spanish version
{
"toltecs",
0,
AD_ENTRY1s("WESTERN", "479f468beccc1b0ce5873ec523d1380e", 308391018),
Common::ES_ESP,
Common::kPlatformDOS,
ADGF_NO_FLAGS,
GUIO1(GAMEOPTION_ORIGINAL_SAVELOAD)
},
},
{
// 3 Skulls of the Toltecs Hungarian version
// From bug #5902
{
"toltecs",
0,
AD_ENTRY1s("WESTERN", "69a5572e75409d8c6230b787faa353af", 337647960),
Common::HU_HUN,
Common::kPlatformDOS,
ADGF_NO_FLAGS,
GUIO1(GAMEOPTION_ORIGINAL_SAVELOAD)
},
},
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),
Common::CS_CZE,
2020-11-28 15:36:48 +00:00
Common::kPlatformDOS,
ADGF_NO_FLAGS,
GUIO1(GAMEOPTION_ORIGINAL_SAVELOAD)
2019-11-13 00:46:31 +00:00
},
},
{
// 3 Skulls of the Toltecs English Demo version
{
"toltecs",
2022-07-19 12:57:52 +00:00
"Demo",
AD_ENTRY1s("WESTERN", "53a0abd1c0bc5cad8ba18f0e56877705", 46241833),
Common::EN_ANY,
Common::kPlatformDOS,
ADGF_DEMO,
GUIO1(GAMEOPTION_ORIGINAL_SAVELOAD)
},
},
{
// 3 Skulls of the Toltecs German Demo version
{
"toltecs",
2022-07-19 12:57:52 +00:00
"Demo",
AD_ENTRY1s("WESTERN", "1c85e82712d24f1d5c1ea2a66ddd75c2", 47730038),
Common::DE_DEU,
Common::kPlatformDOS,
ADGF_DEMO,
GUIO1(GAMEOPTION_ORIGINAL_SAVELOAD)
},
},
{
// 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 }
};
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
};
} // End of namespace Toltecs
class ToltecsMetaEngineDetection : public AdvancedMetaEngineDetection {
2008-08-04 11:28:57 +00:00
public:
ToltecsMetaEngineDetection() : AdvancedMetaEngineDetection(Toltecs::gameDescriptions, sizeof(Toltecs::ToltecsGameDescription), toltecsGames, Toltecs::optionsList) {
}
2008-08-04 11:28:57 +00:00
const char *getName() const override {
return "toltecs";
}
const char *getEngineName() const override {
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 {
return "3 Skulls of the Toltecs (C) Revistronic 1996";
2008-08-04 11:28:57 +00:00
}
};
REGISTER_PLUGIN_STATIC(TOLTECS_DETECTION, PLUGIN_TYPE_ENGINE_DETECTION, ToltecsMetaEngineDetection);