mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
TEENAGENT: move debug channels to metaEngineDetection
This commit is contained in:
parent
3c283af377
commit
8c500c9675
@ -26,6 +26,22 @@
|
||||
#include "common/translation.h"
|
||||
|
||||
#include "engines/advancedDetector.h"
|
||||
#include "teenagent/teenagent.h"
|
||||
|
||||
static const DebugChannelDef debugFlagList[] = {
|
||||
{TeenAgent::kDebugActor, "Actor", "Enable Actor Debug"},
|
||||
{TeenAgent::kDebugAnimation, "Animation", "Enable Animation Debug"},
|
||||
{TeenAgent::kDebugCallbacks, "Callbacks", "Enable Callbacks Debug"},
|
||||
{TeenAgent::kDebugDialog, "Dialog", "Enable Dialog Debug"},
|
||||
{TeenAgent::kDebugFont, "Font", "Enable Font Debug"},
|
||||
{TeenAgent::kDebugInventory, "Inventory", "Enable Inventory Debug"},
|
||||
{TeenAgent::kDebugMusic, "Music", "Enable Music Debug"},
|
||||
{TeenAgent::kDebugObject, "Object", "Enable Object Debug"},
|
||||
{TeenAgent::kDebugPack, "Pack", "Enable Pack Debug"},
|
||||
{TeenAgent::kDebugScene, "Scene", "Enable Scene Debug"},
|
||||
{TeenAgent::kDebugSurface, "Surface", "Enable Surface Debug"},
|
||||
DEBUG_CHANNEL_END
|
||||
};
|
||||
|
||||
static const PlainGameDescriptor teenAgentGames[] = {
|
||||
{ "teenagent", "Teen Agent" },
|
||||
@ -203,6 +219,10 @@ public:
|
||||
const char *getOriginalCopyright() const override {
|
||||
return "TEENAGENT (C) 1994 Metropolis";
|
||||
}
|
||||
|
||||
const DebugChannelDef *getDebugChannels() const override {
|
||||
return debugFlagList;
|
||||
}
|
||||
};
|
||||
|
||||
REGISTER_PLUGIN_STATIC(TEENAGENT_DETECTION, PLUGIN_TYPE_ENGINE_DETECTION, TeenAgentMetaEngineDetection);
|
||||
|
@ -54,18 +54,6 @@ namespace TeenAgent {
|
||||
|
||||
TeenAgentEngine::TeenAgentEngine(OSystem *system, const ADGameDescription *gd)
|
||||
: Engine(system), _action(kActionNone), _gameDescription(gd), _rnd("teenagent") {
|
||||
DebugMan.addDebugChannel(kDebugActor, "Actor", "Enable Actor Debug");
|
||||
DebugMan.addDebugChannel(kDebugAnimation, "Animation", "Enable Animation Debug");
|
||||
DebugMan.addDebugChannel(kDebugCallbacks, "Callbacks", "Enable Callbacks Debug");
|
||||
DebugMan.addDebugChannel(kDebugDialog, "Dialog", "Enable Dialog Debug");
|
||||
DebugMan.addDebugChannel(kDebugFont, "Font", "Enable Font Debug");
|
||||
DebugMan.addDebugChannel(kDebugInventory, "Inventory", "Enable Inventory Debug");
|
||||
DebugMan.addDebugChannel(kDebugMusic, "Music", "Enable Music Debug");
|
||||
DebugMan.addDebugChannel(kDebugObject, "Object", "Enable Object Debug");
|
||||
DebugMan.addDebugChannel(kDebugPack, "Pack", "Enable Pack Debug");
|
||||
DebugMan.addDebugChannel(kDebugScene, "Scene", "Enable Scene Debug");
|
||||
DebugMan.addDebugChannel(kDebugSurface, "Surface", "Enable Surface Debug");
|
||||
|
||||
music = new MusicPlayer(this);
|
||||
dialog = new Dialog(this);
|
||||
res = new Resources();
|
||||
|
Loading…
Reference in New Issue
Block a user