mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 14:18:37 +00:00
AGOS: move debug channels to metaEngineDetection
This commit is contained in:
parent
ff8d7f442a
commit
7dcf259006
@ -163,10 +163,6 @@ Common::Error AGOSEngine_Elvira1::init() {
|
|||||||
AGOSEngine::AGOSEngine(OSystem *system, const AGOSGameDescription *gd)
|
AGOSEngine::AGOSEngine(OSystem *system, const AGOSGameDescription *gd)
|
||||||
: Engine(system), _rnd("agos"), _gameDescription(gd) {
|
: Engine(system), _rnd("agos"), _gameDescription(gd) {
|
||||||
|
|
||||||
DebugMan.addDebugChannel(kDebugOpcode, "opcode", "Opcode debug level");
|
|
||||||
DebugMan.addDebugChannel(kDebugVGAOpcode, "vga_opcode", "VGA Opcode debug level");
|
|
||||||
DebugMan.addDebugChannel(kDebugSubroutine, "subroutine", "Subroutine debug level");
|
|
||||||
DebugMan.addDebugChannel(kDebugVGAScript, "vga_script", "VGA Script debug level");
|
|
||||||
//Image dumping command disabled as it doesn't work well
|
//Image dumping command disabled as it doesn't work well
|
||||||
#if 0
|
#if 0
|
||||||
DebugMan.addDebugChannel(kDebugImageDump, "image_dump", "Enable dumping of images to files");
|
DebugMan.addDebugChannel(kDebugImageDump, "image_dump", "Enable dumping of images to files");
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
#include "agos/detection.h"
|
#include "agos/detection.h"
|
||||||
#include "agos/intern_detection.h"
|
#include "agos/intern_detection.h"
|
||||||
#include "agos/obsolete.h" // Obsolete ID table.
|
#include "agos/obsolete.h" // Obsolete ID table.
|
||||||
|
#include "agos/agos.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Conversion table mapping old obsolete target names to the
|
* Conversion table mapping old obsolete target names to the
|
||||||
@ -39,6 +40,14 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
static const DebugChannelDef debugFlagList[] = {
|
||||||
|
{AGOS::kDebugOpcode, "opcode", "Opcode debug level"},
|
||||||
|
{AGOS::kDebugVGAOpcode, "vga_opcode", "VGA Opcode debug level"},
|
||||||
|
{AGOS::kDebugSubroutine, "subroutine", "Subroutine debug level"},
|
||||||
|
{AGOS::kDebugVGAScript, "vga_script", "VGA Script debug level"},
|
||||||
|
DEBUG_CHANNEL_END
|
||||||
|
};
|
||||||
|
|
||||||
static const PlainGameDescriptor agosGames[] = {
|
static const PlainGameDescriptor agosGames[] = {
|
||||||
{"pn", "Personal Nightmare"},
|
{"pn", "Personal Nightmare"},
|
||||||
{"elvira1", "Elvira - Mistress of the Dark"},
|
{"elvira1", "Elvira - Mistress of the Dark"},
|
||||||
@ -86,6 +95,10 @@ public:
|
|||||||
const char *getOriginalCopyright() const override {
|
const char *getOriginalCopyright() const override {
|
||||||
return "AGOS (C) Adventure Soft";
|
return "AGOS (C) Adventure Soft";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const DebugChannelDef *getDebugChannels() const override {
|
||||||
|
return debugFlagList;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
REGISTER_PLUGIN_STATIC(AGOS_DETECTION, PLUGIN_TYPE_ENGINE_DETECTION, AgosMetaEngineDetection);
|
REGISTER_PLUGIN_STATIC(AGOS_DETECTION, PLUGIN_TYPE_ENGINE_DETECTION, AgosMetaEngineDetection);
|
||||||
|
Loading…
Reference in New Issue
Block a user