COMMON: Rename DebugManager methods, update comments

This commit is contained in:
sluicebox 2021-06-09 19:08:02 -06:00
parent efd4f9ff9d
commit f2f28c4549
6 changed files with 36 additions and 31 deletions

View file

@ -678,7 +678,7 @@ QualifiedGameList EngineManager::findGamesMatching(const Common::String &engineI
const Plugin *p = EngineMan.findPlugin(engineId);
if (p) {
const MetaEngineDetection &engine = p->get<MetaEngineDetection>();
DebugMan.debugFlagsRegister(engine.getDebugChannels());
DebugMan.addAllDebugChannels(engine.getDebugChannels());
PlainGameDescriptor pluginResult = engine.findGame(gameId.c_str());
if (pluginResult.gameId) {
@ -708,7 +708,7 @@ QualifiedGameList EngineManager::findGameInLoadedPlugins(const Common::String &g
for (iter = plugins.begin(); iter != plugins.end(); ++iter) {
const MetaEngineDetection &engine = (*iter)->get<MetaEngineDetection>();
DebugMan.debugFlagsRegister(engine.getDebugChannels());
DebugMan.addAllDebugChannels(engine.getDebugChannels());
PlainGameDescriptor pluginResult = engine.findGame(gameId.c_str());
if (pluginResult.gameId) {
@ -736,7 +736,7 @@ DetectionResults EngineManager::detectGames(const Common::FSList &fslist) const
for (iter = plugins.begin(); iter != plugins.end(); ++iter) {
const MetaEngineDetection &metaEngine = (*iter)->get<MetaEngineDetection>();
// set the debug flags
DebugMan.debugFlagsRegister(metaEngine.getDebugChannels());
DebugMan.addAllDebugChannels(metaEngine.getDebugChannels());
DetectedGames engineCandidates = metaEngine.detectGames(fslist);
for (uint i = 0; i < engineCandidates.size(); i++) {
@ -867,7 +867,7 @@ QualifiedGameDescriptor EngineManager::findTarget(const Common::String &target,
// Make sure it does support the game ID
const MetaEngineDetection &engine = foundPlugin->get<MetaEngineDetection>();
DebugMan.debugFlagsRegister(engine.getDebugChannels());
DebugMan.addAllDebugChannels(engine.getDebugChannels());
PlainGameDescriptor desc = engine.findGame(domain->getVal("gameid").c_str());
if (!desc.gameId) {
return QualifiedGameDescriptor();
@ -934,7 +934,7 @@ void EngineManager::upgradeTargetForEngineId(const Common::String &target) const
// Take the first detection entry
const MetaEngineDetection &metaEngine = plugin->get<MetaEngineDetection>();
// set debug flags before call detectGames
DebugMan.debugFlagsRegister(metaEngine.getDebugChannels());
DebugMan.addAllDebugChannels(metaEngine.getDebugChannels());
DetectedGames candidates = metaEngine.detectGames(files);
if (candidates.empty()) {
warning("No games supported by the engine '%s' were found in path '%s' when upgrading target '%s'",