2010-07-31 06:23:38 +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 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2014-02-18 02:34:25 +01:00
|
|
|
*
|
2010-07-31 06:23:38 +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:25 +01:00
|
|
|
*
|
2010-07-31 06:23:38 +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.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "base/plugins.h"
|
2016-03-09 00:02:45 +00:00
|
|
|
#include "common/translation.h"
|
2010-07-31 06:23:38 +00:00
|
|
|
#include "engines/advancedDetector.h"
|
|
|
|
|
2020-08-26 16:41:04 +05:30
|
|
|
#include "sword25/detection.h"
|
2020-08-25 13:52:43 +05:30
|
|
|
#include "sword25/detection_tables.h"
|
2021-05-16 20:55:22 +08:00
|
|
|
#include "sword25/sword25.h"
|
2010-07-31 06:23:38 +00:00
|
|
|
|
2011-06-10 15:53:55 +02:00
|
|
|
static const PlainGameDescriptor sword25Game[] = {
|
2010-07-31 06:23:38 +00:00
|
|
|
{"sword25", "Broken Sword 2.5"},
|
|
|
|
{0, 0}
|
|
|
|
};
|
|
|
|
|
2021-05-16 20:55:22 +08:00
|
|
|
static const DebugChannelDef debugFlagList[] = {
|
|
|
|
{Sword25::kDebugScript, "Script", "Script debug level"},
|
|
|
|
{Sword25::kDebugSound, "Sound", "Sound debug level"},
|
|
|
|
DEBUG_CHANNEL_END
|
|
|
|
};
|
|
|
|
|
2010-08-16 15:16:36 +00:00
|
|
|
static const char *directoryGlobs[] = {
|
|
|
|
"system", // Used by extracted dats
|
|
|
|
0
|
|
|
|
};
|
|
|
|
|
2016-03-09 00:02:45 +00:00
|
|
|
static const ExtraGuiOption sword25ExtraGuiOption = {
|
|
|
|
_s("Use English speech"),
|
|
|
|
_s("Use English speech instead of German for every language other than German"),
|
|
|
|
"english_speech",
|
|
|
|
false
|
|
|
|
};
|
|
|
|
|
2020-10-11 23:14:39 +02:00
|
|
|
class Sword25MetaEngineDetection : public AdvancedMetaEngineDetection {
|
2010-07-31 06:23:38 +00:00
|
|
|
public:
|
2020-10-11 23:14:39 +02:00
|
|
|
Sword25MetaEngineDetection() : AdvancedMetaEngineDetection(Sword25::gameDescriptions, sizeof(ADGameDescription), sword25Game) {
|
2016-03-08 18:30:58 +01:00
|
|
|
_guiOptions = GUIO1(GUIO_NOMIDI);
|
2011-06-11 17:52:32 +02:00
|
|
|
_maxScanDepth = 2;
|
|
|
|
_directoryGlobs = directoryGlobs;
|
2011-06-10 15:53:55 +02:00
|
|
|
}
|
2016-09-15 18:23:35 +02:00
|
|
|
|
2020-02-05 16:20:50 +01:00
|
|
|
const char *getEngineId() const override {
|
2016-09-15 18:23:35 +02:00
|
|
|
return "sword25";
|
|
|
|
}
|
|
|
|
|
2020-02-09 12:05:32 +01:00
|
|
|
const char *getName() const override {
|
2016-09-15 20:04:14 +02:00
|
|
|
return "Broken Sword 2.5";
|
2010-07-31 06:23:38 +00:00
|
|
|
}
|
|
|
|
|
2020-02-09 12:05:32 +01:00
|
|
|
const char *getOriginalCopyright() const override {
|
2010-07-31 06:23:38 +00:00
|
|
|
return "Broken Sword 2.5 (C) Malte Thiesen, Daniel Queteschiner and Michael Elsdorfer";
|
|
|
|
}
|
|
|
|
|
2021-05-16 20:55:22 +08:00
|
|
|
const DebugChannelDef *getDebugChannels() const override {
|
|
|
|
return debugFlagList;
|
|
|
|
}
|
|
|
|
|
2020-02-09 12:05:32 +01:00
|
|
|
const ExtraGuiOptions getExtraGuiOptions(const Common::String &target) const override;
|
2010-07-31 06:23:38 +00:00
|
|
|
};
|
|
|
|
|
2020-10-11 23:14:39 +02:00
|
|
|
const ExtraGuiOptions Sword25MetaEngineDetection::getExtraGuiOptions(const Common::String &target) const {
|
2016-03-09 00:02:45 +00:00
|
|
|
ExtraGuiOptions options;
|
|
|
|
options.push_back(sword25ExtraGuiOption);
|
|
|
|
return options;
|
|
|
|
}
|
|
|
|
|
2020-10-11 23:14:39 +02:00
|
|
|
REGISTER_PLUGIN_STATIC(SWORD25_DETECTION, PLUGIN_TYPE_ENGINE_DETECTION, Sword25MetaEngineDetection);
|