diff options
author | Max Horn | 2005-05-10 23:17:38 +0000 |
---|---|---|
committer | Max Horn | 2005-05-10 23:17:38 +0000 |
commit | 72f4c03b0b9a6918a359b967ebc400a2701981d9 (patch) | |
tree | 6686cad5726244b7d9d3a4adddde8dea92ce7843 /backends/PalmOS/Src/palmsave.cpp | |
parent | b75c969e666b9f262a05e0d1e54d56f7d3e45441 (diff) | |
download | scummvm-rg350-72f4c03b0b9a6918a359b967ebc400a2701981d9.tar.gz scummvm-rg350-72f4c03b0b9a6918a359b967ebc400a2701981d9.tar.bz2 scummvm-rg350-72f4c03b0b9a6918a359b967ebc400a2701981d9.zip |
Moved (In/Out)SaveFile(Manager) and Timer to namespace Common
svn-id: r18038
Diffstat (limited to 'backends/PalmOS/Src/palmsave.cpp')
-rw-r--r-- | backends/PalmOS/Src/palmsave.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/backends/PalmOS/Src/palmsave.cpp b/backends/PalmOS/Src/palmsave.cpp index 760460f369..a13a112e0f 100644 --- a/backends/PalmOS/Src/palmsave.cpp +++ b/backends/PalmOS/Src/palmsave.cpp @@ -28,7 +28,7 @@ // SaveFile class -class PalmSaveFile : public SaveFile { +class PalmSaveFile : public Common::SaveFile { public: PalmSaveFile(const char *filename, bool saveOrLoad); ~PalmSaveFile(); @@ -126,27 +126,27 @@ uint32 PalmSaveFile::write(const void *buf, uint32 size) { class PalmSaveFileManager : public SaveFileManager { public: - virtual OutSaveFile *openForSaving(const char *filename) { + virtual Common::OutSaveFile *openForSaving(const char *filename) { return openSavefile(filename, true); } - virtual InSaveFile *openForLoading(const char *filename) { + virtual Common::InSaveFile *openForLoading(const char *filename) { return openSavefile(filename, false); } - SaveFile *openSavefile(const char *filename, bool saveOrLoad); + Common::SaveFile *openSavefile(const char *filename, bool saveOrLoad); void listSavefiles(const char *prefix, bool *marks, int num); protected: - SaveFile *makeSaveFile(const char *filename, bool saveOrLoad); + Common::SaveFile *makeSaveFile(const char *filename, bool saveOrLoad); }; -SaveFile *PalmSaveFileManager::openSavefile(const char *filename, bool saveOrLoad) { +Common::SaveFile *PalmSaveFileManager::openSavefile(const char *filename, bool saveOrLoad) { char buf[256]; strncpy(buf, getSavePath(), sizeof(buf)); strncat(buf, filename, sizeof(buf)); - SaveFile *sf = makeSaveFile(buf, saveOrLoad); + Common::SaveFile *sf = makeSaveFile(buf, saveOrLoad); if (!sf->isOpen()) { delete sf; sf = NULL; @@ -194,11 +194,11 @@ void PalmSaveFileManager::listSavefiles(const char *prefix, bool *marks, int num VFSFileClose(fileRef); } -SaveFile *PalmSaveFileManager::makeSaveFile(const char *filename, bool saveOrLoad) { +Common::SaveFile *PalmSaveFileManager::makeSaveFile(const char *filename, bool saveOrLoad) { return new PalmSaveFile(filename, saveOrLoad); } // OSystem -SaveFileManager *OSystem_PALMOS::getSavefileManager() { +Common::SaveFileManager *OSystem_PALMOS::getSavefileManager() { return new PalmSaveFileManager(); } |