[Scummvm-git-logs] scummvm quux -> 4a6489b14eb4b282bd48909af1dab7c2ded83705

sev- sev at scummvm.org
Sun May 23 17:11:40 UTC 2021


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
4a6489b14e QUUX: Update to the latest changes with debug flags


Commit: 4a6489b14eb4b282bd48909af1dab7c2ded83705
    https://github.com/scummvm/scummvm/commit/4a6489b14eb4b282bd48909af1dab7c2ded83705
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2021-05-23T19:11:06+02:00

Commit Message:
QUUX: Update to the latest changes with debug flags

Changed paths:
    engines/quux/detection.cpp
    engines/quux/quux.cpp


diff --git a/engines/quux/detection.cpp b/engines/quux/detection.cpp
index 42ff1596e2..e37cf4d6d5 100644
--- a/engines/quux/detection.cpp
+++ b/engines/quux/detection.cpp
@@ -22,6 +22,15 @@
 
 #include "base/plugins.h"
 #include "engines/advancedDetector.h"
+#include "quux/quux.h"
+
+// Here is the right place to set up the engine specific debug channels.
+// The list must be terminated by the DEBUG_CHANNEL_END macro
+static const DebugChannelDef debugFlagList[] = {
+	{ Quux::kQuuxDebugExample, "example", "this is just an example for a engine specific debug channel" },
+	{ Quux::kQuuxDebugExample2, "example2", "also an example" },
+	DEBUG_CHANNEL_END
+};
 
 namespace Quux {
 static const PlainGameDescriptor quuxGames[] = {
@@ -61,6 +70,10 @@ public:
 	const char *getOriginalCopyright() const override {
 		return "Copyright (C) Quux Entertainment Ltd.";
 	}
+
+	const DebugChannelDef *getDebugChannels() const override {
+		return debugFlagList;
+	}
 };
 
 REGISTER_PLUGIN_STATIC(QUUX_DETECTION, PLUGIN_TYPE_ENGINE_DETECTION, QuuxMetaEngineDetection);
diff --git a/engines/quux/quux.cpp b/engines/quux/quux.cpp
index 6803c46b2f..8d422342d2 100644
--- a/engines/quux/quux.cpp
+++ b/engines/quux/quux.cpp
@@ -50,10 +50,6 @@ QuuxEngine::QuuxEngine(OSystem *syst)
 	const Common::FSNode gameDataDir(ConfMan.get("path"));
 	SearchMan.addSubDirectoryMatching(gameDataDir, "sound");
 
-	// Here is the right place to set up the engine specific debug channels
-	DebugMan.addDebugChannel(kQuuxDebugExample, "example", "this is just an example for a engine specific debug channel");
-	DebugMan.addDebugChannel(kQuuxDebugExample2, "example2", "also an example");
-
 	// Don't forget to register your random source
 	_rnd = new Common::RandomSource("quux");
 




More information about the Scummvm-git-logs mailing list