[Scummvm-git-logs] scummvm master -> 0438c92e6716c238622606beea674b3c4e16382f

digitall noreply at scummvm.org
Thu Dec 26 07:01:09 UTC 2024


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:
0438c92e67 BAGEL: Remove Unused Debug Flag Related Code


Commit: 0438c92e6716c238622606beea674b3c4e16382f
    https://github.com/scummvm/scummvm/commit/0438c92e6716c238622606beea674b3c4e16382f
Author: D G Turner (digitall at scummvm.org)
Date: 2024-12-26T06:58:09Z

Commit Message:
BAGEL: Remove Unused Debug Flag Related Code

This was causing a "No debug channels were added, list is empty!"
warning to be emitted on the console during detection due to the empty
debugflag list. Easier to remove this unused code as it can be restored
if debugflags are implemented for this engine in future.

This resolves bug #15616 "Warnings in status window when adding any game".

Changed paths:
    engines/bagel/detection.cpp
    engines/bagel/detection.h


diff --git a/engines/bagel/detection.cpp b/engines/bagel/detection.cpp
index 06216564581..db5da80a7b5 100644
--- a/engines/bagel/detection.cpp
+++ b/engines/bagel/detection.cpp
@@ -22,10 +22,6 @@
 #include "bagel/detection.h"
 #include "bagel/detection_tables.h"
 
-const DebugChannelDef BagelMetaEngineDetection::debugFlagList[] = {
-	DEBUG_CHANNEL_END
-};
-
 BagelMetaEngineDetection::BagelMetaEngineDetection() : AdvancedMetaEngineDetection(Bagel::gameDescriptions, Bagel::bagelGames) {
 	_guiOptions = GUIO2(GUIO_NOSPEECH, GAMEOPTION_ORIGINAL_SAVELOAD);
 	_flags = kADFlagMatchFullPaths;
diff --git a/engines/bagel/detection.h b/engines/bagel/detection.h
index 3ac661a92a0..a46e4c0f759 100644
--- a/engines/bagel/detection.h
+++ b/engines/bagel/detection.h
@@ -26,10 +26,6 @@
 
 namespace Bagel {
 
-enum BagelDebugChannels {
-	kDebugUnused = 1
-};
-
 extern const PlainGameDescriptor bagelGames[];
 
 extern const ADGameDescription gameDescriptions[];
@@ -39,7 +35,6 @@ extern const ADGameDescription gameDescriptions[];
 } // End of namespace Bagel
 
 class BagelMetaEngineDetection : public AdvancedMetaEngineDetection<ADGameDescription> {
-	static const DebugChannelDef debugFlagList[];
 
 public:
 	BagelMetaEngineDetection();
@@ -56,10 +51,6 @@ public:
 	const char *getOriginalCopyright() const override {
 		return "Copyright(C) 1996 Boffo Games, Inc.";
 	}
-
-	const DebugChannelDef *getDebugChannels() const override {
-		return debugFlagList;
-	}
 };
 
 #endif // BAGEL_DETECTION_H




More information about the Scummvm-git-logs mailing list