From ffe2c802c471826913e79333a979d41c94a9cc67 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 18 Sep 2016 00:59:40 +0200 Subject: FULLPIPE: Save header, remove debug leftovers --- engines/fullpipe/gameloader.cpp | 3 ++- 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); } -- cgit v1.2.3