TESTBED: move debug channels to metaEngineDetection
This commit is contained in:
parent
8c500c9675
commit
32f66c21dd
2 changed files with 11 additions and 3 deletions
|
@ -23,12 +23,19 @@
|
|||
#include "engines/advancedDetector.h"
|
||||
|
||||
#include "base/plugins.h"
|
||||
#include "testbed/testbed.h"
|
||||
|
||||
static const PlainGameDescriptor testbed_setting[] = {
|
||||
{ "testbed", "Testbed: The Backend Testing Framework" },
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
static const DebugChannelDef debugFlagList[] = {
|
||||
{Testbed::kTestbedLogOutput, "LOG", "Log of test results generated by testbed"},
|
||||
{Testbed::kTestbedEngineDebug, "Debug", "Engine-specific debug statements"},
|
||||
DEBUG_CHANNEL_END
|
||||
};
|
||||
|
||||
static const ADGameDescription testbedDescriptions[] = {
|
||||
{
|
||||
"testbed",
|
||||
|
@ -59,6 +66,10 @@ public:
|
|||
const char *getOriginalCopyright() const override {
|
||||
return "Copyright (C) ScummVM";
|
||||
}
|
||||
|
||||
const DebugChannelDef *getDebugChannels() const override {
|
||||
return debugFlagList;
|
||||
}
|
||||
};
|
||||
|
||||
REGISTER_PLUGIN_STATIC(TESTBED_DETECTION, PLUGIN_TYPE_ENGINE_DETECTION, TestbedMetaEngineDetection);
|
||||
|
|
|
@ -119,9 +119,6 @@ TestbedEngine::TestbedEngine(OSystem *syst)
|
|||
if (gameRoot.exists()) {
|
||||
SearchMan.addDirectory(gameRoot.getDisplayName(), gameRoot);
|
||||
}
|
||||
|
||||
DebugMan.addDebugChannel(kTestbedLogOutput, "LOG", "Log of test results generated by testbed");
|
||||
DebugMan.addDebugChannel(kTestbedEngineDebug, "Debug", "Engine-specific debug statements");
|
||||
DebugMan.enableDebugChannel("LOG");
|
||||
|
||||
pushTestsuites(_testsuiteList);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue