diff options
author | Eugene Sandulenko | 2016-09-19 10:17:50 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-09-19 18:13:31 +0200 |
commit | 1e9351efaf5c7c99c23f6155b4f9ac591f8c42d4 (patch) | |
tree | 221bcc23356dca96bab8aae77760c868df4d8cd6 /engines/fullpipe | |
parent | 26142799adf6ef4e07a3a91c413f40c7253aa3f8 (diff) | |
download | scummvm-rg350-1e9351efaf5c7c99c23f6155b4f9ac591f8c42d4.tar.gz scummvm-rg350-1e9351efaf5c7c99c23f6155b4f9ac591f8c42d4.tar.bz2 scummvm-rg350-1e9351efaf5c7c99c23f6155b4f9ac591f8c42d4.zip |
FULLPIPE: Added debug info to saveload code
Diffstat (limited to 'engines/fullpipe')
-rw-r--r-- | engines/fullpipe/stateloader.cpp | 3 | ||||
-rw-r--r-- | engines/fullpipe/statesaver.cpp | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/engines/fullpipe/stateloader.cpp b/engines/fullpipe/stateloader.cpp index 588a366df7..12895fd42a 100644 --- a/engines/fullpipe/stateloader.cpp +++ b/engines/fullpipe/stateloader.cpp @@ -53,6 +53,9 @@ void GameLoader::readSavegame(const char *fname) { header.unkField = saveFile->readUint32LE(); header.encSize = saveFile->readUint32LE(); + debugC(3, kDebugLoading, "version: %d magic: %s updateCounter: %d unkField: %d encSize: %d, pos: %d", + header.version, header.magic, header.updateCounter, header.unkField, header.encSize, saveFile->pos()); + if (header.version != 48) return; diff --git a/engines/fullpipe/statesaver.cpp b/engines/fullpipe/statesaver.cpp index c63587a560..eaf0352cec 100644 --- a/engines/fullpipe/statesaver.cpp +++ b/engines/fullpipe/statesaver.cpp @@ -109,6 +109,9 @@ void GameLoader::writeSavegame(Scene *sc, const char *fname) { saveFile->writeUint32LE(header.unkField); saveFile->writeUint32LE(header.encSize); + debugC(3, kDebugLoading, "version: %d magic: %s updateCounter: %d unkField: %d encSize: %d, pos: %d", + header.version, header.magic, header.updateCounter, header.unkField, header.encSize, saveFile->pos()); + saveFile->write(stream.getData(), stream.size()); saveFile->finalize(); |