diff options
author | whiterandrek | 2018-06-18 04:22:24 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2018-06-28 23:51:32 +0200 |
commit | 425e034bee864fbfb47f015073f9aba1cea95cba (patch) | |
tree | 71b76dc4adb95e640e153d46c0d8125a9b4143e8 /engines/pink | |
parent | 07e1621ebc897aa08e724172d2c1882096bc4998 (diff) | |
download | scummvm-rg350-425e034bee864fbfb47f015073f9aba1cea95cba.tar.gz scummvm-rg350-425e034bee864fbfb47f015073f9aba1cea95cba.tar.bz2 scummvm-rg350-425e034bee864fbfb47f015073f9aba1cea95cba.zip |
PINK: add some debug output to simplify communication with testers
Diffstat (limited to 'engines/pink')
-rw-r--r-- | engines/pink/objects/pages/game_page.cpp | 3 | ||||
-rw-r--r-- | engines/pink/objects/pages/page.cpp | 1 | ||||
-rw-r--r-- | engines/pink/pink.cpp | 3 |
3 files changed, 7 insertions, 0 deletions
diff --git a/engines/pink/objects/pages/game_page.cpp b/engines/pink/objects/pages/game_page.cpp index d383a9b066..4c05da012e 100644 --- a/engines/pink/objects/pages/game_page.cpp +++ b/engines/pink/objects/pages/game_page.cpp @@ -55,6 +55,7 @@ void GamePage::deserialize(Archive &archive) { } void GamePage::load(Archive &archive) { + debug("GamePage load started"); archive.mapObject(_cursorMgr); archive.mapObject(_walkMgr); archive.mapObject(_sequencer); @@ -66,6 +67,7 @@ void GamePage::load(Archive &archive) { _walkMgr->deserialize(archive); _sequencer->deserialize(archive); _handlers.deserialize(archive); + debug("GamePage load ended"); } void GamePage::init(bool isLoadingSave) { @@ -106,6 +108,7 @@ void GamePage::loadManagers() { _walkMgr = new WalkMgr; _sequencer = new Sequencer(this); + debug("ResMgr init"); _resMgr.init(_module->getGame(), this); if (_memFile != nullptr) { diff --git a/engines/pink/objects/pages/page.cpp b/engines/pink/objects/pages/page.cpp index 086253de13..38165719bc 100644 --- a/engines/pink/objects/pages/page.cpp +++ b/engines/pink/objects/pages/page.cpp @@ -32,6 +32,7 @@ Page::~Page() { } void Page::load(Archive &archive) { + debug("Page load"); archive.mapObject(this); NamedObject::deserialize(archive); archive.readString(); //skip directory diff --git a/engines/pink/pink.cpp b/engines/pink/pink.cpp index 6ac377be8e..397d0b93e6 100644 --- a/engines/pink/pink.cpp +++ b/engines/pink/pink.cpp @@ -88,6 +88,7 @@ Common::Error PinkEngine::init() { setCursor(kLoadingCursor); _orb.loadGame(this); + debug("Modules are loaded"); syncSoundSettings(); @@ -151,6 +152,8 @@ void PinkEngine::initModule(const Common::String &moduleName, const Common::Stri if (saveFile) _module->loadState(*saveFile); + debug("Module added"); + _module->init(saveFile ? kLoadingSave : kLoadingNewGame, pageName); } |