aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/n64
diff options
context:
space:
mode:
authorAlexander Tkachev2016-08-31 12:33:57 +0600
committerAlexander Tkachev2016-08-31 12:33:57 +0600
commit9d6ae2a33ff842e1089eabea5ec271f45916e51b (patch)
tree19bb26953c4d92f9bb316d323f444fd90f650553 /backends/platform/n64
parent153f06b324c686b5b7a220ca59414adab14c2032 (diff)
downloadscummvm-rg350-9d6ae2a33ff842e1089eabea5ec271f45916e51b.tar.gz
scummvm-rg350-9d6ae2a33ff842e1089eabea5ec271f45916e51b.tar.bz2
scummvm-rg350-9d6ae2a33ff842e1089eabea5ec271f45916e51b.zip
DS, N64: Fix SaveFileManagers
Added updateSavefilesList() and openRawFile() stubs. It should build fine now, I guess.
Diffstat (limited to 'backends/platform/n64')
-rw-r--r--backends/platform/n64/framfs_save_manager.h15
-rw-r--r--backends/platform/n64/pakfs_save_manager.h15
2 files changed, 30 insertions, 0 deletions
diff --git a/backends/platform/n64/framfs_save_manager.h b/backends/platform/n64/framfs_save_manager.h
index f2404285bb..4696794fe9 100644
--- a/backends/platform/n64/framfs_save_manager.h
+++ b/backends/platform/n64/framfs_save_manager.h
@@ -102,6 +102,21 @@ public:
class FRAMSaveManager : public Common::SaveFileManager {
public:
+ virtual void updateSavefilesList(Common::StringArray &lockedFiles) {
+ // this method is used to lock saves while cloud syncing
+ // as there is no network on N64, this method wouldn't be used
+ // thus it's not implemtented
+ }
+
+ virtual Common::InSaveFile *openRawFile(const Common::String &filename) {
+ InFRAMSave *s = new InFRAMSave();
+ if (s->readSaveGame(filename.c_str())) {
+ return s;
+ } else {
+ delete s;
+ return 0;
+ }
+ }
virtual Common::OutSaveFile *openForSaving(const Common::String &filename, bool compress = true) {
OutFRAMSave *s = new OutFRAMSave(filename.c_str());
diff --git a/backends/platform/n64/pakfs_save_manager.h b/backends/platform/n64/pakfs_save_manager.h
index 16b6330b35..f69d91005b 100644
--- a/backends/platform/n64/pakfs_save_manager.h
+++ b/backends/platform/n64/pakfs_save_manager.h
@@ -104,6 +104,21 @@ public:
class PAKSaveManager : public Common::SaveFileManager {
public:
+ virtual void updateSavefilesList(Common::StringArray &lockedFiles) {
+ // this method is used to lock saves while cloud syncing
+ // as there is no network on N64, this method wouldn't be used
+ // thus it's not implemtented
+ }
+
+ virtual Common::InSaveFile *openRawFile(const Common::String &filename) {
+ InPAKSave *s = new InPAKSave();
+ if (s->readSaveGame(filename.c_str())) {
+ return s;
+ } else {
+ delete s;
+ return NULL;
+ }
+ }
virtual Common::OutSaveFile *openForSaving(const Common::String &filename, bool compress = true) {
OutPAKSave *s = new OutPAKSave(filename.c_str());