diff options
author | Max Horn | 2008-10-02 16:58:59 +0000 |
---|---|---|
committer | Max Horn | 2008-10-02 16:58:59 +0000 |
commit | c7fde102e325b423b1b153a78f7544697c052b72 (patch) | |
tree | 051aa4e66c66a20fa52fbb771328df5ea8d4790a /backends/saves | |
parent | 31be8a6b3f22880378db870600b29906135c8ef5 (diff) | |
download | scummvm-rg350-c7fde102e325b423b1b153a78f7544697c052b72.tar.gz scummvm-rg350-c7fde102e325b423b1b153a78f7544697c052b72.tar.bz2 scummvm-rg350-c7fde102e325b423b1b153a78f7544697c052b72.zip |
Renamed FilesystemNode -> FSNode
svn-id: r34716
Diffstat (limited to 'backends/saves')
-rw-r--r-- | backends/saves/default/default-saves.cpp | 20 | ||||
-rw-r--r-- | backends/saves/default/default-saves.h | 2 |
2 files changed, 11 insertions, 11 deletions
diff --git a/backends/saves/default/default-saves.cpp b/backends/saves/default/default-saves.cpp index 0cfd265890..f35606f793 100644 --- a/backends/saves/default/default-saves.cpp +++ b/backends/saves/default/default-saves.cpp @@ -71,7 +71,7 @@ DefaultSaveFileManager::DefaultSaveFileManager(const Common::String &defaultSave Common::StringList DefaultSaveFileManager::listSavefiles(const char *pattern) { - Common::FilesystemNode savePath(getSavePath()); + Common::FSNode savePath(getSavePath()); Common::FSList savefiles; Common::StringList results; Common::String search(pattern); @@ -85,7 +85,7 @@ Common::StringList DefaultSaveFileManager::listSavefiles(const char *pattern) { return results; } -void DefaultSaveFileManager::checkPath(const Common::FilesystemNode &dir) { +void DefaultSaveFileManager::checkPath(const Common::FSNode &dir) { const Common::String path = dir.getPath(); clearError(); @@ -152,7 +152,7 @@ void DefaultSaveFileManager::checkPath(const Common::FilesystemNode &dir) { #else if (!dir.exists()) { // TODO: We could try to mkdir the directory here; or rather, we could - // add a mkdir method to FilesystemNode and invoke that here. + // add a mkdir method to FSNode and invoke that here. setError(SFM_DIR_NOENT, "A component of the path does not exist, or the path is an empty string: "+path); } else if (!dir.isDirectory()) { setError(SFM_DIR_NOTDIR, "The given savepath is not a directory: "+path); @@ -162,11 +162,11 @@ void DefaultSaveFileManager::checkPath(const Common::FilesystemNode &dir) { Common::InSaveFile *DefaultSaveFileManager::openForLoading(const char *filename) { // Ensure that the savepath is valid. If not, generate an appropriate error. - Common::FilesystemNode savePath(getSavePath()); + Common::FSNode savePath(getSavePath()); checkPath(savePath); if (getError() == SFM_NO_ERROR) { - Common::FilesystemNode file = savePath.getChild(filename); + Common::FSNode file = savePath.getChild(filename); // Open the file for reading Common::SeekableReadStream *sf = file.openForReading(); @@ -179,11 +179,11 @@ Common::InSaveFile *DefaultSaveFileManager::openForLoading(const char *filename) Common::OutSaveFile *DefaultSaveFileManager::openForSaving(const char *filename) { // Ensure that the savepath is valid. If not, generate an appropriate error. - Common::FilesystemNode savePath(getSavePath()); + Common::FSNode savePath(getSavePath()); checkPath(savePath); if (getError() == SFM_NO_ERROR) { - Common::FilesystemNode file = savePath.getChild(filename); + Common::FSNode file = savePath.getChild(filename); // Open the file for saving Common::WriteStream *sf = file.openForWriting(); @@ -197,10 +197,10 @@ Common::OutSaveFile *DefaultSaveFileManager::openForSaving(const char *filename) bool DefaultSaveFileManager::removeSavefile(const char *filename) { clearError(); - Common::FilesystemNode savePath(getSavePath()); - Common::FilesystemNode file = savePath.getChild(filename); + Common::FSNode savePath(getSavePath()); + Common::FSNode file = savePath.getChild(filename); - // TODO: Add new method FilesystemNode::remove() + // TODO: Add new method FSNode::remove() if (remove(file.getPath().c_str()) != 0) { #ifndef _WIN32_WCE if (errno == EACCES) diff --git a/backends/saves/default/default-saves.h b/backends/saves/default/default-saves.h index c02ce588c2..7e3c23f5ae 100644 --- a/backends/saves/default/default-saves.h +++ b/backends/saves/default/default-saves.h @@ -55,7 +55,7 @@ protected: * Checks the given path for read access, existence, etc. * Sets the internal error and error message accordingly. */ - void checkPath(const Common::FilesystemNode &dir); + void checkPath(const Common::FSNode &dir); }; #endif |