2014-07-30 01:02:28 +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.
|
|
|
|
*
|
2021-12-26 17:47:58 +00: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-12-17 17:27:47 +00:00
|
|
|
*
|
2014-07-30 01:02:28 +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-12-17 17:27:47 +00:00
|
|
|
*
|
2014-07-30 01:02:28 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
2021-12-26 17:47:58 +00:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2014-07-30 01:02:28 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "base/plugins.h"
|
|
|
|
#include "engines/advancedDetector.h"
|
2020-08-25 08:22:43 +00:00
|
|
|
#include "access/detection.h"
|
2021-05-15 08:32:56 +00:00
|
|
|
#include "access/access.h"
|
2014-07-30 01:02:28 +00:00
|
|
|
|
|
|
|
static const PlainGameDescriptor AccessGames[] = {
|
|
|
|
{"amazon", "Amazon: Guardians of Eden"},
|
2014-12-17 22:22:50 +00:00
|
|
|
{"martian", "Martian Memorandum"},
|
2021-11-13 21:40:03 +00:00
|
|
|
{nullptr, nullptr}
|
2014-07-30 01:02:28 +00:00
|
|
|
};
|
|
|
|
|
2021-05-15 08:32:56 +00:00
|
|
|
static const DebugChannelDef debugFlagList[] = {
|
|
|
|
{Access::kDebugPath, "path", "Pathfinding debug level"},
|
|
|
|
{Access::kDebugScripts, "scripts", "Game scripts"},
|
|
|
|
{Access::kDebugGraphics, "graphics", "Graphics handling"},
|
|
|
|
{Access::kDebugSound, "sound", "Sound and Music handling"},
|
|
|
|
DEBUG_CHANNEL_END
|
|
|
|
};
|
|
|
|
|
2020-08-25 08:22:43 +00:00
|
|
|
#include "access/detection_tables.h"
|
2014-07-30 01:02:28 +00:00
|
|
|
|
2020-10-11 21:14:39 +00:00
|
|
|
class AccessMetaEngineDetection : public AdvancedMetaEngineDetection {
|
2014-07-30 01:02:28 +00:00
|
|
|
public:
|
2020-10-11 21:14:39 +00:00
|
|
|
AccessMetaEngineDetection() : AdvancedMetaEngineDetection(Access::gameDescriptions, sizeof(Access::AccessGameDescription), AccessGames) {
|
2014-07-30 01:02:28 +00:00
|
|
|
_maxScanDepth = 3;
|
|
|
|
}
|
|
|
|
|
2022-01-13 20:34:25 +00:00
|
|
|
const char *getName() const override {
|
2016-09-15 16:23:35 +00:00
|
|
|
return "access";
|
|
|
|
}
|
|
|
|
|
2022-01-13 20:34:25 +00:00
|
|
|
const char *getEngineName() const override {
|
2016-09-15 18:04:14 +00:00
|
|
|
return "Access";
|
2014-07-30 01:02:28 +00:00
|
|
|
}
|
|
|
|
|
2020-02-09 11:05:26 +00:00
|
|
|
const char *getOriginalCopyright() const override {
|
2016-05-29 12:04:41 +00:00
|
|
|
return "Access Engine (C) 1989-1994 Access Software";
|
2014-07-30 01:02:28 +00:00
|
|
|
}
|
2021-05-15 08:32:56 +00:00
|
|
|
|
|
|
|
const DebugChannelDef *getDebugChannels() const override {
|
|
|
|
return debugFlagList;
|
|
|
|
}
|
2014-07-30 01:02:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-10-11 21:14:39 +00:00
|
|
|
REGISTER_PLUGIN_STATIC(ACCESS_DETECTION, PLUGIN_TYPE_ENGINE_DETECTION, AccessMetaEngineDetection);
|