2012-09-07 22:20:05 +10: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:21 +01:00
|
|
|
*
|
2012-09-07 22:20:05 +10: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:21 +01:00
|
|
|
*
|
2012-09-07 22:20:05 +10: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/>.
|
2012-09-07 22:20:05 +10:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2013-02-15 22:20:24 +01:00
|
|
|
#include "base/plugins.h"
|
2012-09-07 22:20:05 +10:00
|
|
|
#include "engines/advancedDetector.h"
|
2014-02-02 16:20:17 +01:00
|
|
|
#include "common/translation.h"
|
2012-09-07 22:20:05 +10:00
|
|
|
|
2020-08-25 13:52:43 +05:30
|
|
|
#include "hopkins/detection.h"
|
2021-05-16 16:16:42 +08:00
|
|
|
#include "hopkins/hopkins.h"
|
|
|
|
|
|
|
|
static const DebugChannelDef debugFlagList[] = {
|
|
|
|
{Hopkins::kDebugPath, "Path", "Pathfinding debug level"},
|
|
|
|
{Hopkins::kDebugGraphics, "Graphics", "Graphics debug level"},
|
|
|
|
DEBUG_CHANNEL_END
|
|
|
|
};
|
2012-09-07 22:20:05 +10:00
|
|
|
|
2012-09-08 09:08:24 +10:00
|
|
|
static const PlainGameDescriptor hopkinsGames[] = {
|
2012-09-07 22:20:05 +10:00
|
|
|
{"hopkins", "Hopkins FBI"},
|
2021-11-13 23:40:28 +02:00
|
|
|
{nullptr, nullptr}
|
2012-09-07 22:20:05 +10:00
|
|
|
};
|
|
|
|
|
2020-08-25 13:52:43 +05:30
|
|
|
#include "hopkins/detection_tables.h"
|
2012-09-07 22:20:05 +10:00
|
|
|
|
2014-02-02 16:20:17 +01:00
|
|
|
static const ADExtraGuiOptionsMap optionsList[] = {
|
|
|
|
{
|
|
|
|
GAMEOPTION_GORE_DEFAULT_OFF,
|
|
|
|
{
|
|
|
|
_s("Gore Mode"),
|
|
|
|
_s("Enable Gore Mode when available"),
|
|
|
|
"enable_gore",
|
2022-03-28 09:50:07 +02:00
|
|
|
false,
|
|
|
|
0,
|
|
|
|
0
|
2014-02-02 16:20:17 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
GAMEOPTION_GORE_DEFAULT_ON,
|
|
|
|
{
|
|
|
|
_s("Gore Mode"),
|
|
|
|
_s("Enable Gore Mode when available"),
|
|
|
|
"enable_gore",
|
2022-03-28 09:50:07 +02:00
|
|
|
true,
|
|
|
|
0,
|
|
|
|
0
|
2014-02-02 16:20:17 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
AD_EXTRA_GUI_OPTIONS_TERMINATOR
|
|
|
|
};
|
|
|
|
|
2012-11-17 00:43:05 +01:00
|
|
|
const static char *directoryGlobs[] = {
|
|
|
|
"voice",
|
2013-05-22 23:16:38 +02:00
|
|
|
"link",
|
2021-11-13 23:40:28 +02:00
|
|
|
nullptr
|
2012-11-17 00:43:05 +01:00
|
|
|
};
|
|
|
|
|
2020-10-11 23:14:39 +02:00
|
|
|
class HopkinsMetaEngineDetection : public AdvancedMetaEngineDetection {
|
2012-09-07 22:20:05 +10:00
|
|
|
public:
|
2020-10-11 23:14:39 +02:00
|
|
|
HopkinsMetaEngineDetection() : AdvancedMetaEngineDetection(Hopkins::gameDescriptions, sizeof(Hopkins::HopkinsGameDescription), hopkinsGames, optionsList) {
|
2012-11-17 00:43:05 +01:00
|
|
|
_maxScanDepth = 3;
|
|
|
|
_directoryGlobs = directoryGlobs;
|
2012-09-07 22:20:05 +10:00
|
|
|
}
|
|
|
|
|
2022-01-13 20:34:25 +00:00
|
|
|
const char *getName() const override {
|
2016-09-15 18:23:35 +02:00
|
|
|
return "hopkins";
|
|
|
|
}
|
|
|
|
|
2022-01-13 20:34:25 +00:00
|
|
|
const char *getEngineName() const override {
|
2016-09-15 20:04:14 +02:00
|
|
|
return "Hopkins FBI";
|
2012-09-07 22:20:05 +10:00
|
|
|
}
|
|
|
|
|
2020-02-09 12:05:29 +01:00
|
|
|
const char *getOriginalCopyright() const override {
|
2018-12-10 18:39:26 +01:00
|
|
|
return "Hopkins FBI (C) 1997-2003 MP Entertainment";
|
2012-09-07 22:20:05 +10:00
|
|
|
}
|
2021-05-16 16:16:42 +08:00
|
|
|
|
|
|
|
const DebugChannelDef *getDebugChannels() const override {
|
|
|
|
return debugFlagList;
|
|
|
|
}
|
2012-09-07 22:20:05 +10:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-10-11 23:14:39 +02:00
|
|
|
REGISTER_PLUGIN_STATIC(HOPKINS_DETECTION, PLUGIN_TYPE_ENGINE_DETECTION, HopkinsMetaEngineDetection);
|