Initial commit
This commit is contained in:
87
engines/efh/detection.cpp
Normal file
87
engines/efh/detection.cpp
Normal file
@@ -0,0 +1,87 @@
|
||||
/* 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.
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "base/plugins.h"
|
||||
#include "engines/advancedDetector.h"
|
||||
|
||||
#include "efh/detection.h"
|
||||
#include "efh/efh.h"
|
||||
|
||||
namespace Efh {
|
||||
|
||||
static const PlainGameDescriptor efhGames[] = {
|
||||
// Games
|
||||
{"efh", "Escape From Hell"},
|
||||
{nullptr, nullptr}
|
||||
};
|
||||
|
||||
static const ADGameDescription gameDescriptions[] = {
|
||||
|
||||
// Escape From Hell English - Unpacked version
|
||||
{
|
||||
"efh", nullptr, AD_ENTRY1s("escape.exe", "2702f8f713e113a853a925d29aecc709", 147312),
|
||||
Common::EN_ANY,
|
||||
Common::kPlatformDOS,
|
||||
ADGF_NO_FLAGS,
|
||||
GUIO1(GAMEOPTION_TTS)
|
||||
},
|
||||
// Escape From Hell English
|
||||
{
|
||||
"efh", nullptr, AD_ENTRY1s("escape.exe", "1ca4ae3f2ea66c30d1ef3e257a86cd05", 141487),
|
||||
Common::EN_ANY,
|
||||
Common::kPlatformDOS,
|
||||
ADGF_NO_FLAGS,
|
||||
GUIO1(GAMEOPTION_TTS)
|
||||
},
|
||||
AD_TABLE_END_MARKER
|
||||
};
|
||||
|
||||
static const DebugChannelDef debugFlagList[] = {
|
||||
{Efh::kDebugEngine, "engine", "Engine debug level"},
|
||||
{Efh::kDebugUtils, "utils", "Utils debug level"},
|
||||
{Efh::kDebugGraphics, "graphics", "Graphics debug level"},
|
||||
DEBUG_CHANNEL_END};
|
||||
|
||||
class EfhMetaEngineDetection : public AdvancedMetaEngineDetection<ADGameDescription> {
|
||||
public:
|
||||
EfhMetaEngineDetection() : AdvancedMetaEngineDetection(gameDescriptions, efhGames) {
|
||||
}
|
||||
|
||||
const char *getEngineName() const override {
|
||||
return "Efh";
|
||||
}
|
||||
|
||||
const char *getName() const override {
|
||||
return "efh";
|
||||
}
|
||||
|
||||
const char *getOriginalCopyright() const override {
|
||||
return "Escape From Hell (C) Electronic Arts, 1990";
|
||||
}
|
||||
|
||||
const DebugChannelDef *getDebugChannels() const override {
|
||||
return debugFlagList;
|
||||
}
|
||||
};
|
||||
|
||||
} // End of namespace efh
|
||||
|
||||
REGISTER_PLUGIN_STATIC(EFH_DETECTION, PLUGIN_TYPE_ENGINE_DETECTION, Efh::EfhMetaEngineDetection);
|
||||
Reference in New Issue
Block a user