diff options
author | Eugene Sandulenko | 2016-09-23 09:53:00 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-09-23 18:28:01 +0200 |
commit | a46ac560150318b460a18181a02b627ee1e20a61 (patch) | |
tree | 50ce5f42c5f139daa0eb3e8eb36ad0488886825a /engines | |
parent | c73d66adb5d2ad963b745b1991772bf1d30b9ec7 (diff) | |
download | scummvm-rg350-a46ac560150318b460a18181a02b627ee1e20a61.tar.gz scummvm-rg350-a46ac560150318b460a18181a02b627ee1e20a61.tar.bz2 scummvm-rg350-a46ac560150318b460a18181a02b627ee1e20a61.zip |
FULLPIPE: Added more debug info to saveload code
Diffstat (limited to 'engines')
-rw-r--r-- | engines/fullpipe/stateloader.cpp | 3 | ||||
-rw-r--r-- | engines/fullpipe/statesaver.cpp | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/engines/fullpipe/stateloader.cpp b/engines/fullpipe/stateloader.cpp index b61834db34..8f6a3b243c 100644 --- a/engines/fullpipe/stateloader.cpp +++ b/engines/fullpipe/stateloader.cpp @@ -102,8 +102,11 @@ void GameLoader::readSavegame(const char *fname) { int32 arrSize = archive->readUint32LE(); + debugC(3, kDebugLoading, "Reading %d infos", arrSize); + for (uint i = 0; i < arrSize; i++) { _sc2array[i]._picAniInfosCount = archive->readUint32LE(); + debugC(3, kDebugLoading, "Count %d: %d", i, _sc2array[i]._picAniInfosCount); free(_sc2array[i]._picAniInfos); _sc2array[i]._picAniInfos = (PicAniInfo **)malloc(sizeof(PicAniInfo *) * _sc2array[i]._picAniInfosCount); diff --git a/engines/fullpipe/statesaver.cpp b/engines/fullpipe/statesaver.cpp index c6f4851a44..31c2543a23 100644 --- a/engines/fullpipe/statesaver.cpp +++ b/engines/fullpipe/statesaver.cpp @@ -85,9 +85,13 @@ void GameLoader::writeSavegame(Scene *sc, const char *fname) { archive->writeUint32LE(_sc2array.size()); + debugC(3, kDebugLoading, "Saving %d infos", _sc2array.size()); + for (uint i = 0; i < _sc2array.size(); i++) { archive->writeUint32LE(_sc2array[i]._picAniInfosCount); + debugC(3, kDebugLoading, "Count %d: %d", i, _sc2array[i]._picAniInfosCount); + for (uint j = 0; j < _sc2array[i]._picAniInfosCount; j++) { _sc2array[i]._picAniInfos[j]->save(*archive); } |