From 373002d3039192b56b46b1ad09035f3cbfa13202 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 27 Aug 2019 00:51:43 +0200 Subject: HDB: Added debug output for map loading --- engines/hdb/hdb.cpp | 2 ++ engines/hdb/saveload.cpp | 3 +++ 2 files changed, 5 insertions(+) diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp index 557c8bac75..b8aa0fdf4f 100644 --- a/engines/hdb/hdb.cpp +++ b/engines/hdb/hdb.cpp @@ -217,6 +217,8 @@ bool HDBGame::restartMap() { if (!_currentMapname[0]) return false; + debug(0, "Starting map %s", _currentMapname); + _gfx->emptyGfxCaches(); _lua->callFunction("level_shutdown", 0); diff --git a/engines/hdb/saveload.cpp b/engines/hdb/saveload.cpp index 618d9a9be4..acf1092577 100644 --- a/engines/hdb/saveload.cpp +++ b/engines/hdb/saveload.cpp @@ -217,6 +217,9 @@ void HDBGame::save(Common::OutSaveFile *out) { void HDBGame::loadSaveFile(Common::InSaveFile *in) { in->read(_currentMapname, 64); + + debug(0, "Loading map %s", _currentMapname); + in->read(_lastMapname, 64); in->read(_currentLuaName, 64); _actionMode = in->readSint32LE(); -- cgit v1.2.3