aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/ps2/savefilemgr.cpp
diff options
context:
space:
mode:
authorMax Lingua2009-03-06 00:21:06 +0000
committerMax Lingua2009-03-06 00:21:06 +0000
commit6d870649507594a87c40d8fae0f5aa204d0b4520 (patch)
tree1305cadbe11e73544fd0d2c534bd07382c70f0c0 /backends/platform/ps2/savefilemgr.cpp
parent865b213439d624b5eced128ffa3eb6a318ab37b7 (diff)
downloadscummvm-rg350-6d870649507594a87c40d8fae0f5aa204d0b4520.tar.gz
scummvm-rg350-6d870649507594a87c40d8fae0f5aa204d0b4520.tar.bz2
scummvm-rg350-6d870649507594a87c40d8fae0f5aa204d0b4520.zip
Implemented _overlayFormat in Gs2dScreen
Modified PS2FSNode openForReading -> createReadStream openForWriting -> createWriteStream Started Common::EventManager *OSystem::getEventManager() on backend side... svn-id: r39141
Diffstat (limited to 'backends/platform/ps2/savefilemgr.cpp')
-rw-r--r--backends/platform/ps2/savefilemgr.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/backends/platform/ps2/savefilemgr.cpp b/backends/platform/ps2/savefilemgr.cpp
index 410d209d12..d15beb418a 100644
--- a/backends/platform/ps2/savefilemgr.cpp
+++ b/backends/platform/ps2/savefilemgr.cpp
@@ -24,7 +24,9 @@
*/
#include "common/config-manager.h"
-#include "backends/saves/compressed/compressed-saves.h"
+#include "common/zlib.h"
+
+// #include "backends/saves/compressed/compressed-saves.h"
#ifdef __USE_LIBMC__
#include <libmc.h>
@@ -124,7 +126,7 @@ Common::InSaveFile *Ps2SaveFileManager::openForLoading(const char *filename) {
if(!file.exists())
return NULL;
- sf = file.openForReading();
+ sf = file.createReadStream();
} else {
Common::FSNode file = savePath.getChild(filename);
@@ -132,12 +134,12 @@ Common::InSaveFile *Ps2SaveFileManager::openForLoading(const char *filename) {
if(!file.exists())
return NULL;
- sf = file.openForReading();
+ sf = file.createReadStream();
}
// _screen->wantAnim(false);
- return wrapInSaveFile(sf);
+ return Common::wrapCompressedReadStream(sf);
}
Common::OutSaveFile *Ps2SaveFileManager::openForSaving(const char *filename) {
@@ -177,16 +179,16 @@ Common::OutSaveFile *Ps2SaveFileManager::openForSaving(const char *filename) {
}
Common::FSNode file(path);
- sf = file.openForWriting();
+ sf = file.createWriteStream();
free(game);
free(ext);
} else {
Common::FSNode file = savePath.getChild(filename);
- sf = file.openForWriting();
+ sf = file.createWriteStream();
}
_screen->wantAnim(false);
- return wrapOutSaveFile(sf);
+ return Common::wrapCompressedWriteStream(sf);
}
bool Ps2SaveFileManager::removeSavefile(const char *filename) {