From 629ba37616763b18cdc1c5ece8821ccb68486648 Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Thu, 20 Jun 2019 19:59:46 +0530 Subject: HDB: Add debug output to findFirstData() --- engines/hdb/file-manager.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engines') diff --git a/engines/hdb/file-manager.cpp b/engines/hdb/file-manager.cpp index b8b77f2961..622d2c09f5 100644 --- a/engines/hdb/file-manager.cpp +++ b/engines/hdb/file-manager.cpp @@ -96,6 +96,8 @@ Common::SeekableReadStream *FileMan::findFirstData(const char *string, DataType Common::String fileString; MPCEntry *file = NULL; + debug(2, "Looking for Data: '%s'", string); + // Find MPC Entry for (MPCIterator it = _dir.begin(); it != _dir.end(); it++) { fileString = (*it)->filename; @@ -103,11 +105,14 @@ Common::SeekableReadStream *FileMan::findFirstData(const char *string, DataType if ((*it)->type == type) { file = *it; break; + } else { + debug(2, "Found Data but type mismatch: '%s', target: %d, found: %d", string, type, (*it)->type); } } } if (file == NULL) { + debug(2, "Couldn't find Data: '%s'", string); return NULL; } -- cgit v1.2.3