Skip to content

Commit

Permalink
PRINCE: Added more debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed May 6, 2018
1 parent ba666df commit c6872dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion engines/prince/resource.cpp
Expand Up @@ -52,6 +52,8 @@ Common::SeekableReadStream *Resource::getDecompressedStream(Common::SeekableRead
dec.decompress(buffer + 18, decompData, decompLen);
free(buffer);

debug(8, "Resource::getDecompressedStream: decompressed %d to %d bytes", stream->size(), decompLen);

return new Common::MemoryReadStream(decompData, decompLen, DisposeAfterUse::YES);
} else {
return stream;
Expand Down Expand Up @@ -143,7 +145,7 @@ bool PrinceEngine::loadLocation(uint16 locationNr) {
_mobList.clear();
if (getGameType() == kPrinceDataDE) {
const Common::String mobLstName = Common::String::format("mob%02d.lst", _locationNr);
debug("name: %s", mobLstName.c_str());
debug(3, "moblist name: %s", mobLstName.c_str());
Resource::loadResource(_mobList, mobLstName.c_str(), false);
} else if (getGameType() == kPrinceDataPL) {
Resource::loadResource(_mobList, "mob.lst", false);
Expand Down

0 comments on commit c6872dc

Please sign in to comment.