From c54562d9a3fbcc6bc2249e7e36a92ead78165653 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 30 Dec 2007 13:05:38 +0000 Subject: The PS2, DS and PalmOS ports currently do not properly implement their SaveFileManagers -- flagging the incorrect & invalid code by making it not compile. Note: Portser should probably also fix their code in the 0.11 branch svn-id: r30079 --- backends/platform/ps2/savefile.cpp | 13 +++++++++++++ backends/platform/ps2/savefile.h | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) (limited to 'backends/platform/ps2') diff --git a/backends/platform/ps2/savefile.cpp b/backends/platform/ps2/savefile.cpp index 84bee4cf35..3865278788 100644 --- a/backends/platform/ps2/savefile.cpp +++ b/backends/platform/ps2/savefile.cpp @@ -442,6 +442,17 @@ Common::OutSaveFile *Ps2SaveFileManager::openForSaving(const char *filename) { return NULL; } +void Ps2SaveFileManager::removeSavefile(const char *filename) { + TODO: Implement this. +} + +Common::StringList Ps2SaveFileManager::listSavefiles(const char *pattern) { + TODO: Implement this. If you don't understand what it should do, just ask + (e.g. on scummvm-devel or Fingolfin). It should be pretty simple if you + use Common::matchString from common/util.h and read the Doxygen docs, + then combine this with the old code below... + +/* void Ps2SaveFileManager::listSavefiles(const char *prefix, bool *marks, int num) { _screen->wantAnim(true); @@ -483,6 +494,8 @@ void Ps2SaveFileManager::listSavefiles(const char *prefix, bool *marks, int num) } _screen->wantAnim(false); } +*/ + bool Ps2SaveFileManager::setupIcon(const char *dest, const char *ico, const char *descr1, const char *descr2) { mcIcon icon_sys; diff --git a/backends/platform/ps2/savefile.h b/backends/platform/ps2/savefile.h index 5e3c12beb7..f72177e7ca 100644 --- a/backends/platform/ps2/savefile.h +++ b/backends/platform/ps2/savefile.h @@ -40,7 +40,7 @@ public: virtual Common::InSaveFile *openForLoading(const char *filename); virtual Common::OutSaveFile *openForSaving(const char *filename); - virtual void listSavefiles(const char *prefix, bool *marks, int num); + virtual Common::StringList listSavefiles(const char *pattern); void writeSaveNonblocking(char *name, void *buf, uint32 size); void saveThread(void); -- cgit v1.2.3