HDB: Add and modify debug output

This commit is contained in:
Nipun Garg 2019-06-23 08:22:59 +05:30 committed by Eugene Sandulenko
parent d48404d087
commit a1b1275764
2 changed files with 5 additions and 3 deletions

View File

@ -209,6 +209,7 @@ void AI::processCines() {
break;
}
case C_DIALOG:
debug("In processCines: C_DIALOG: _cine[i]->start: %d", _cine[i]->start);
if (_cine[i]->start) {
g_hdb->_window->openDialog(_cine[i]->title, -1, _cine[i]->string, 0, NULL);
g_hdb->_window->setDialogDelay(_cine[i]->delay);
@ -385,6 +386,7 @@ void AI::cineDialog(const char *title, const char *string, int seconds) {
if (!title || !string)
warning("cineDialog: Missing Title or Text");
cmd->cmdType = C_DIALOG;
debug("In cineDialog: C_DIALOG created. cmd->start: %d", cmd->start);
_cine.push_back(cmd);
}

View File

@ -96,7 +96,7 @@ Common::SeekableReadStream *FileMan::findFirstData(const char *string, DataType
Common::String fileString;
MPCEntry *file = NULL;
debug(2, "Looking for Data: '%s'", string);
debug(4, "Looking for Data: '%s'", string);
// Find MPC Entry
for (MPCIterator it = _dir.begin(); it != _dir.end(); it++) {
@ -106,13 +106,13 @@ Common::SeekableReadStream *FileMan::findFirstData(const char *string, DataType
file = *it;
break;
} else {
debug(2, "Found Data but type mismatch: '%s', target: %d, found: %d", string, type, (*it)->type);
debug(4, "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);
debug(4, "Couldn't find Data: '%s'", string);
return NULL;
}