aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb
diff options
context:
space:
mode:
authorNipun Garg2019-06-20 19:59:46 +0530
committerEugene Sandulenko2019-09-03 17:16:52 +0200
commit629ba37616763b18cdc1c5ece8821ccb68486648 (patch)
treef9cf5a409a7a9e432174d4f158a9ee3d047d1c1e /engines/hdb
parent630c6b44f8911a3444e4098091ae2907fa78eede (diff)
downloadscummvm-rg350-629ba37616763b18cdc1c5ece8821ccb68486648.tar.gz
scummvm-rg350-629ba37616763b18cdc1c5ece8821ccb68486648.tar.bz2
scummvm-rg350-629ba37616763b18cdc1c5ece8821ccb68486648.zip
HDB: Add debug output to findFirstData()
Diffstat (limited to 'engines/hdb')
-rw-r--r--engines/hdb/file-manager.cpp5
1 files changed, 5 insertions, 0 deletions
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;
}