Initial commit
This commit is contained in:
70
engines/alg/detection.cpp
Normal file
70
engines/alg/detection.cpp
Normal file
@@ -0,0 +1,70 @@
|
||||
/* 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 "alg/alg.h"
|
||||
#include "alg/detection.h"
|
||||
#include "alg/detection_tables.h"
|
||||
|
||||
static const PlainGameDescriptor algGames[] = {
|
||||
{ "maddog", "Mad Dog McCree" },
|
||||
{ "johnroc", "Who Shot Johnny Rock?" },
|
||||
{ "spirates", "Space Pirates" },
|
||||
{ "maddog2", "Mad Dog II: The Lost Gold" },
|
||||
{ "cpatrol", "Crime Patrol" },
|
||||
{ "dwars", "Crime Patrol 2: Drug Wars" },
|
||||
{ "lbhunter", "The Last Bounty Hunter" },
|
||||
{ nullptr, nullptr }
|
||||
};
|
||||
|
||||
static const DebugChannelDef debugFlagList[] = {
|
||||
{ Alg::kAlgDebugGeneral, "general", "General" },
|
||||
{ Alg::kAlgDebugGraphics, "graphics", "Graphics" },
|
||||
DEBUG_CHANNEL_END
|
||||
};
|
||||
|
||||
class AlgMetaEngineDetection : public AdvancedMetaEngineDetection<Alg::AlgGameDescription> {
|
||||
public:
|
||||
AlgMetaEngineDetection() : AdvancedMetaEngineDetection(Alg::gameDescriptions, algGames) {
|
||||
_guiOptions = GUIO2(GUIO_NOMIDI, GUIO_NOSUBTITLES);
|
||||
_maxScanDepth = 1;
|
||||
}
|
||||
|
||||
const char *getName() const override {
|
||||
return "alg";
|
||||
}
|
||||
|
||||
const char *getEngineName() const override {
|
||||
return "American Laser Games";
|
||||
}
|
||||
|
||||
const char *getOriginalCopyright() const override {
|
||||
return "Copyright (C) American Laser Games";
|
||||
}
|
||||
|
||||
const DebugChannelDef *getDebugChannels() const override {
|
||||
return debugFlagList;
|
||||
}
|
||||
};
|
||||
|
||||
REGISTER_PLUGIN_STATIC(ALG_DETECTION, PLUGIN_TYPE_ENGINE_DETECTION, AlgMetaEngineDetection);
|
||||
Reference in New Issue
Block a user