diff options
Diffstat (limited to 'backends/platform/ds/arm9/source/gbampsave.h')
-rw-r--r-- | backends/platform/ds/arm9/source/gbampsave.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/backends/platform/ds/arm9/source/gbampsave.h b/backends/platform/ds/arm9/source/gbampsave.h index b9589a29e6..a131b6beba 100644 --- a/backends/platform/ds/arm9/source/gbampsave.h +++ b/backends/platform/ds/arm9/source/gbampsave.h @@ -24,11 +24,13 @@ #define _GBAMPSAVE_H_ #include "system.h" +#include "common/savefile.h" +#include "ds-fs.h" #define SAVE_BUFFER_SIZE 100000 class GBAMPSaveFile : public Common::InSaveFile, public Common::OutSaveFile { - FILE* handle; + DS::fileHandle* handle; char buffer[SAVE_BUFFER_SIZE]; int bufferPos; int saveSize; @@ -70,6 +72,8 @@ public: virtual Common::OutSaveFile* openForSaving(const char* filename) { return openSavefile(filename, true); } virtual Common::InSaveFile* openForLoading(const char* filename) { return openSavefile(filename, false); } + virtual bool removeSavefile(const char *filename) { return false; } // TODO: Implement this + virtual Common::StringList listSavefiles(const char *regex); void listSavefiles(const char *prefix, bool *marks, int num); |