DREAMWEB: move debug channels to metaEngineDetection

This commit is contained in:
ysj1173886760 2021-05-16 15:52:21 +08:00 committed by Eugene Sandulenko
parent 467c6594a2
commit d987e1a6b1
2 changed files with 11 additions and 3 deletions

View File

@ -29,12 +29,19 @@
#include "engines/advancedDetector.h"
#include "dreamweb/detection.h"
#include "dreamweb/dreamweb.h"
static const PlainGameDescriptor dreamWebGames[] = {
{ "dreamweb", "DreamWeb" },
{ 0, 0 }
};
static const DebugChannelDef debugFlagList[] = {
{DreamWeb::kDebugAnimation, "Animation", "Animation Debug Flag"},
{DreamWeb::kDebugSaveLoad, "SaveLoad", "Track Save/Load Function"},
DEBUG_CHANNEL_END
};
#include "dreamweb/detection_tables.h"
static const ADExtraGuiOptionsMap gameGuiOptions[] = {
@ -81,6 +88,10 @@ public:
const char *getOriginalCopyright() const override {
return "DreamWeb (C) Creative Reality";
}
const DebugChannelDef *getDebugChannels() const override {
return debugFlagList;
}
};
REGISTER_PLUGIN_STATIC(DREAMWEB_DETECTION, PLUGIN_TYPE_ENGINE_DETECTION, DreamWebMetaEngineDetection);

View File

@ -46,9 +46,6 @@ DreamWebEngine::DreamWebEngine(OSystem *syst, const DreamWebGameDescription *gam
_roomDesc(kNumRoomTexts), _freeDesc(kNumFreeTexts),
_personText(kNumPersonTexts) {
DebugMan.addDebugChannel(kDebugAnimation, "Animation", "Animation Debug Flag");
DebugMan.addDebugChannel(kDebugSaveLoad, "SaveLoad", "Track Save/Load Function");
_vSyncPrevTick = 0;
_sound = 0;
_speed = 1;