diff options
author | Filippos Karapetis | 2012-07-01 11:08:08 -0700 |
---|---|---|
committer | Filippos Karapetis | 2012-07-01 11:08:08 -0700 |
commit | 2c161796c5688a1f76dcf66f1e66eb9bcd1e0f23 (patch) | |
tree | 3bac116e107f2948388444cf26f8cf8a88bc3521 /backends/platform/ps2 | |
parent | d335b78003f3d28d1c9c9aeddf6a46ad1c5f4888 (diff) | |
parent | 659d0cfcc39721001f607e4ca51b8eb477708404 (diff) | |
download | scummvm-rg350-2c161796c5688a1f76dcf66f1e66eb9bcd1e0f23.tar.gz scummvm-rg350-2c161796c5688a1f76dcf66f1e66eb9bcd1e0f23.tar.bz2 scummvm-rg350-2c161796c5688a1f76dcf66f1e66eb9bcd1e0f23.zip |
Merge pull request #239 from bluegr/skipsavecompression
COMMON: Allow the savefile manager to create uncompressed saves
Diffstat (limited to 'backends/platform/ps2')
-rw-r--r-- | backends/platform/ps2/savefilemgr.cpp | 4 | ||||
-rw-r--r-- | backends/platform/ps2/savefilemgr.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/backends/platform/ps2/savefilemgr.cpp b/backends/platform/ps2/savefilemgr.cpp index 421edc3e2e..46af42e193 100644 --- a/backends/platform/ps2/savefilemgr.cpp +++ b/backends/platform/ps2/savefilemgr.cpp @@ -145,7 +145,7 @@ Common::InSaveFile *Ps2SaveFileManager::openForLoading(const Common::String &fil return Common::wrapCompressedReadStream(sf); } -Common::OutSaveFile *Ps2SaveFileManager::openForSaving(const Common::String &filename) { +Common::OutSaveFile *Ps2SaveFileManager::openForSaving(const Common::String &filename, bool compress) { Common::FSNode savePath(ConfMan.get("savepath")); // TODO: is this fast? Common::WriteStream *sf; @@ -193,7 +193,7 @@ Common::OutSaveFile *Ps2SaveFileManager::openForSaving(const Common::String &fil } _screen->wantAnim(false); - return Common::wrapCompressedWriteStream(sf); + return compress ? Common::wrapCompressedWriteStream(sf) : sf; } bool Ps2SaveFileManager::removeSavefile(const Common::String &filename) { diff --git a/backends/platform/ps2/savefilemgr.h b/backends/platform/ps2/savefilemgr.h index a25fb063ae..163706eace 100644 --- a/backends/platform/ps2/savefilemgr.h +++ b/backends/platform/ps2/savefilemgr.h @@ -35,7 +35,7 @@ public: virtual ~Ps2SaveFileManager(); virtual Common::InSaveFile *openForLoading(const Common::String &filename); - virtual Common::OutSaveFile *openForSaving(const Common::String &filename); + virtual Common::OutSaveFile *openForSaving(const Common::String &filename, bool compress = true); virtual Common::StringArray listSavefiles(const Common::String &pattern); virtual bool removeSavefile(const Common::String &filename); |