diff options
author | Max Horn | 2005-04-10 15:13:40 +0000 |
---|---|---|
committer | Max Horn | 2005-04-10 15:13:40 +0000 |
commit | e79c168d35d9c3633e3dfb618bd05466b0efc307 (patch) | |
tree | fe4fa01fd852546eaa3229f62069109d98eb8a67 /backends/PalmOS/Src/palmsave.cpp | |
parent | e03861fdd4ca4cb676788c4ae4ea19647107fd6b (diff) | |
download | scummvm-rg350-e79c168d35d9c3633e3dfb618bd05466b0efc307.tar.gz scummvm-rg350-e79c168d35d9c3633e3dfb618bd05466b0efc307.tar.bz2 scummvm-rg350-e79c168d35d9c3633e3dfb618bd05466b0efc307.zip |
split SaveFileManager::openSavefile and class SaveFile into two, each, one for loading and one for saving
svn-id: r17517
Diffstat (limited to 'backends/PalmOS/Src/palmsave.cpp')
-rw-r--r-- | backends/PalmOS/Src/palmsave.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/backends/PalmOS/Src/palmsave.cpp b/backends/PalmOS/Src/palmsave.cpp index b2d8840020..760460f369 100644 --- a/backends/PalmOS/Src/palmsave.cpp +++ b/backends/PalmOS/Src/palmsave.cpp @@ -126,6 +126,13 @@ uint32 PalmSaveFile::write(const void *buf, uint32 size) { class PalmSaveFileManager : public SaveFileManager { public: + virtual OutSaveFile *openForSaving(const char *filename) { + return openSavefile(filename, true); + } + virtual InSaveFile *openForLoading(const char *filename) { + return openSavefile(filename, false); + } + SaveFile *openSavefile(const char *filename, bool saveOrLoad); void listSavefiles(const char *prefix, bool *marks, int num); |