2010-06-26 13:07:13 +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 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:25 +01:00
|
|
|
*
|
2010-06-26 13:07:13 +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-02-18 02:34:25 +01:00
|
|
|
*
|
2010-06-26 13:07:13 +00: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/>.
|
2010-06-26 13:07:13 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2010-07-10 19:24:12 +00:00
|
|
|
#include "engines/advancedDetector.h"
|
|
|
|
|
|
|
|
#include "base/plugins.h"
|
2021-05-16 21:01:05 +08:00
|
|
|
#include "testbed/testbed.h"
|
2010-07-10 19:24:12 +00:00
|
|
|
|
2010-05-31 04:58:19 +00:00
|
|
|
static const PlainGameDescriptor testbed_setting[] = {
|
2010-09-12 16:41:13 +00:00
|
|
|
{ "testbed", "Testbed: The Backend Testing Framework" },
|
2010-05-24 17:43:55 +00:00
|
|
|
{ 0, 0 }
|
|
|
|
};
|
2010-07-10 19:24:12 +00:00
|
|
|
|
2021-05-16 21:01:05 +08:00
|
|
|
static const DebugChannelDef debugFlagList[] = {
|
|
|
|
{Testbed::kTestbedLogOutput, "LOG", "Log of test results generated by testbed"},
|
|
|
|
{Testbed::kTestbedEngineDebug, "Debug", "Engine-specific debug statements"},
|
|
|
|
DEBUG_CHANNEL_END
|
|
|
|
};
|
|
|
|
|
2010-07-10 19:24:12 +00:00
|
|
|
static const ADGameDescription testbedDescriptions[] = {
|
|
|
|
{
|
|
|
|
"testbed",
|
|
|
|
"",
|
2010-10-02 01:05:16 +00:00
|
|
|
AD_ENTRY1("TESTBED", 0), // Game-data file for detection
|
2010-07-10 19:24:12 +00:00
|
|
|
Common::EN_ANY,
|
2013-05-02 18:26:58 -04:00
|
|
|
Common::kPlatformDOS,
|
2010-07-10 19:24:12 +00:00
|
|
|
ADGF_NO_FLAGS,
|
2020-02-11 22:04:32 +01:00
|
|
|
GUIO1(GUIO_NOLAUNCHLOAD)
|
2010-07-10 19:24:12 +00:00
|
|
|
},
|
|
|
|
AD_TABLE_END_MARKER
|
|
|
|
};
|
|
|
|
|
2020-10-11 23:14:39 +02:00
|
|
|
class TestbedMetaEngineDetection : public AdvancedMetaEngineDetection {
|
2010-05-24 17:43:55 +00:00
|
|
|
public:
|
2020-10-11 23:14:39 +02:00
|
|
|
TestbedMetaEngineDetection() : AdvancedMetaEngineDetection(testbedDescriptions, sizeof(ADGameDescription), testbed_setting) {
|
2011-06-11 17:52:32 +02:00
|
|
|
_md5Bytes = 512;
|
2010-07-10 19:24:12 +00:00
|
|
|
}
|
|
|
|
|
2022-01-13 20:34:25 +00:00
|
|
|
const char *getName() const override {
|
2016-09-15 18:23:35 +02:00
|
|
|
return "testbed";
|
|
|
|
}
|
|
|
|
|
2022-01-13 20:34:25 +00:00
|
|
|
const char *getEngineName() const override {
|
2010-10-02 01:05:16 +00:00
|
|
|
return "TestBed: The Backend Testing Framework";
|
2010-05-24 17:43:55 +00:00
|
|
|
}
|
2010-07-10 19:24:12 +00:00
|
|
|
|
2020-02-09 12:05:33 +01:00
|
|
|
const char *getOriginalCopyright() const override {
|
2010-05-31 04:58:19 +00:00
|
|
|
return "Copyright (C) ScummVM";
|
2010-05-24 17:43:55 +00:00
|
|
|
}
|
2021-05-16 21:01:05 +08:00
|
|
|
|
|
|
|
const DebugChannelDef *getDebugChannels() const override {
|
|
|
|
return debugFlagList;
|
|
|
|
}
|
2010-05-24 17:43:55 +00:00
|
|
|
};
|
2010-07-10 19:24:12 +00:00
|
|
|
|
2020-10-11 23:14:39 +02:00
|
|
|
REGISTER_PLUGIN_STATIC(TESTBED_DETECTION, PLUGIN_TYPE_ENGINE_DETECTION, TestbedMetaEngineDetection);
|