diff options
author | Eugene Sandulenko | 2016-09-18 00:59:40 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-09-18 00:59:40 +0200 |
commit | ffe2c802c471826913e79333a979d41c94a9cc67 (patch) | |
tree | 224a355413f1088e614c00baa93415fa6a215f00 | |
parent | f0d786184bb9b3cfefc16fb2be87d6c6d1017160 (diff) | |
download | scummvm-rg350-ffe2c802c471826913e79333a979d41c94a9cc67.tar.gz scummvm-rg350-ffe2c802c471826913e79333a979d41c94a9cc67.tar.bz2 scummvm-rg350-ffe2c802c471826913e79333a979d41c94a9cc67.zip |
FULLPIPE: Save header, remove debug leftovers
-rw-r--r-- | engines/fullpipe/gameloader.cpp | 3 | ||||
-rw-r--r-- | engines/fullpipe/statesaver.cpp | 6 |
2 files changed, 2 insertions, 7 deletions
diff --git a/engines/fullpipe/gameloader.cpp b/engines/fullpipe/gameloader.cpp index 5d204bf0cd..8524a8ddf5 100644 --- a/engines/fullpipe/gameloader.cpp +++ b/engines/fullpipe/gameloader.cpp @@ -651,7 +651,6 @@ void GameLoader::writeSavegame(Scene *sc, const char *fname) { v->_parentVarObj = 0; v->_nextVarObj = 0; v->_prevVarObj = 0; - warning("NULLIFIED"); } archive->writeObject(v); @@ -683,6 +682,8 @@ void GameLoader::writeSavegame(Scene *sc, const char *fname) { // Now dump it into save file Common::OutSaveFile *saveFile = g_system->getSavefileManager()->openForSaving(fname); + saveFile->write(&header, sizeof(header)); + saveFile->write(stream.getData(), stream.size()); saveFile->finalize(); diff --git a/engines/fullpipe/statesaver.cpp b/engines/fullpipe/statesaver.cpp index a889707474..2839cff256 100644 --- a/engines/fullpipe/statesaver.cpp +++ b/engines/fullpipe/statesaver.cpp @@ -47,7 +47,6 @@ void PicAniInfo::save(MfcArchive &file) { } void GameVar::save(MfcArchive &file) { - warning("Saving: %s", transCyrillic((byte *)_varName)); file.writePascalString(_varName); file.writeUint32LE(_varType); @@ -65,15 +64,10 @@ void GameVar::save(MfcArchive &file) { error("Unknown var type: %d (0x%x)", _varType, _varType); } - warning("Saving: %s, _parent", transCyrillic((byte *)_varName)); file.writeObject(_parentVarObj); - warning("Saving: %s, _prev", transCyrillic((byte *)_varName)); file.writeObject(_prevVarObj); - warning("Saving: %s, _next", transCyrillic((byte *)_varName)); file.writeObject(_nextVarObj); - warning("Saving: %s, _field", transCyrillic((byte *)_varName)); file.writeObject(_field_14); - warning("Saving: %s, _subs", transCyrillic((byte *)_varName)); file.writeObject(_subVars); } |