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.
|
|
|
|
*
|
|
|
|
* 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: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
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
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-13 21:10:39 +05:30
|
|
|
#include "hopkins/detection/detection.h"
|
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"},
|
|
|
|
{0, 0}
|
|
|
|
};
|
|
|
|
|
2020-08-13 21:10:39 +05:30
|
|
|
#include "hopkins/detection/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",
|
|
|
|
false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
GAMEOPTION_GORE_DEFAULT_ON,
|
|
|
|
{
|
|
|
|
_s("Gore Mode"),
|
|
|
|
_s("Enable Gore Mode when available"),
|
|
|
|
"enable_gore",
|
|
|
|
true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
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",
|
2012-11-17 00:43:05 +01:00
|
|
|
0
|
|
|
|
};
|
|
|
|
|
2012-09-07 22:20:05 +10:00
|
|
|
class HopkinsMetaEngine : public AdvancedMetaEngine {
|
|
|
|
public:
|
2014-02-02 16:20:17 +01:00
|
|
|
HopkinsMetaEngine() : AdvancedMetaEngine(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
|
|
|
}
|
|
|
|
|
2020-02-09 12:05:29 +01:00
|
|
|
const char *getEngineId() const override {
|
2016-09-15 18:23:35 +02:00
|
|
|
return "hopkins";
|
|
|
|
}
|
|
|
|
|
2020-02-09 12:05:29 +01:00
|
|
|
const char *getName() 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
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-08-06 22:43:20 +05:30
|
|
|
REGISTER_PLUGIN_STATIC(HOPKINS_DETECTION, PLUGIN_TYPE_METAENGINE, HopkinsMetaEngine);
|