diff options
author | Alexander Tkachev | 2016-06-18 18:49:46 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | aee713141b3a401f08e63cd9ccf5ce3dfe1cb06e (patch) | |
tree | 20fb764d74405090278d2b498076c05fe22e266c /engines/kyra/saveload_eob.cpp | |
parent | 81106b04440d76238da0fa0166eb3032b6db591e (diff) | |
download | scummvm-rg350-aee713141b3a401f08e63cd9ccf5ce3dfe1cb06e.tar.gz scummvm-rg350-aee713141b3a401f08e63cd9ccf5ce3dfe1cb06e.tar.bz2 scummvm-rg350-aee713141b3a401f08e63cd9ccf5ce3dfe1cb06e.zip |
CLOUD: Make OutSaveFile start saves sync
It had to become a proxy class in order to do that.
finalize() starts the saves sync.
Diffstat (limited to 'engines/kyra/saveload_eob.cpp')
-rw-r--r-- | engines/kyra/saveload_eob.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/kyra/saveload_eob.cpp b/engines/kyra/saveload_eob.cpp index cca8f3a0a4..6fdff0fc80 100644 --- a/engines/kyra/saveload_eob.cpp +++ b/engines/kyra/saveload_eob.cpp @@ -328,7 +328,7 @@ Common::Error EoBCoreEngine::saveGameStateIntern(int slot, const char *saveName, fileName = getSavegameFilename(slot); } - Common::OutSaveFile *out = openSaveForWriting(fileName, saveName, thumbnail); + Common::OutSaveFile *out = new Common::OutSaveFile(openSaveForWriting(fileName, saveName, thumbnail)); if (!out) return _saveFileMan->getError(); @@ -995,7 +995,7 @@ bool EoBCoreEngine::saveAsOriginalSaveFile(int slot) { return false; Common::FSNode nf = nd.getChild(_flags.gameID == GI_EOB1 ? "EOBDATA.SAV" : Common::String::format("EOBDATA%d.SAV", slot)); - Common::WriteStream *out = nf.createWriteStream(); + Common::OutSaveFile *out = new Common::OutSaveFile(nf.createWriteStream()); if (_flags.gameID == GI_EOB2) { static const char tempStr[20] = "SCUMMVM EXPORT "; |