GNAP: move debug channels to metaEngineDetection
This commit is contained in:
parent
ad4f367292
commit
e42e1bcb25
2 changed files with 9 additions and 2 deletions
|
@ -34,6 +34,11 @@ static const PlainGameDescriptor gnapGames[] = {
|
|||
{ 0, 0 }
|
||||
};
|
||||
|
||||
static const DebugChannelDef debugFlagList[] = {
|
||||
{Gnap::kDebugBasic, "basic", "Basic debug level"},
|
||||
DEBUG_CHANNEL_END
|
||||
};
|
||||
|
||||
namespace Gnap {
|
||||
|
||||
static const ADGameDescription gameDescriptions[] = {
|
||||
|
@ -90,6 +95,10 @@ public:
|
|||
const char *getOriginalCopyright() const override {
|
||||
return "Gnap (C) Artech Digital Entertainment 1997";
|
||||
}
|
||||
|
||||
const DebugChannelDef *getDebugChannels() const override {
|
||||
return debugFlagList;
|
||||
}
|
||||
};
|
||||
|
||||
REGISTER_PLUGIN_STATIC(GNAP_DETECTION, PLUGIN_TYPE_ENGINE_DETECTION, GnapMetaEngineDetection);
|
||||
|
|
|
@ -94,8 +94,6 @@ static const char *kSceneNames[] = {
|
|||
GnapEngine::GnapEngine(OSystem *syst, const ADGameDescription *gd) :
|
||||
Engine(syst), _gameDescription(gd) {
|
||||
|
||||
DebugMan.addDebugChannel(kDebugBasic, "basic", "Basic debug level");
|
||||
|
||||
_random = new Common::RandomSource("gnap");
|
||||
|
||||
Engine::syncSoundSettings();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue