diff options
author | Cameron Cawley | 2019-11-10 16:34:25 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2019-11-17 22:33:56 +0100 |
commit | f2b9f7bb76c041825bef1dcee3abf17d923898da (patch) | |
tree | 9ead87f005a086b6c1cb2cfe4e81d846e3e691dc /backends/saves/default | |
parent | c5a5e0f68a8d740f37f234e773988e8f58273466 (diff) | |
download | scummvm-rg350-f2b9f7bb76c041825bef1dcee3abf17d923898da.tar.gz scummvm-rg350-f2b9f7bb76c041825bef1dcee3abf17d923898da.tar.bz2 scummvm-rg350-f2b9f7bb76c041825bef1dcee3abf17d923898da.zip |
BACKENDS: Remove the Windows CE port
Diffstat (limited to 'backends/saves/default')
-rw-r--r-- | backends/saves/default/default-saves.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/backends/saves/default/default-saves.cpp b/backends/saves/default/default-saves.cpp index 17e888175c..adb24e7a39 100644 --- a/backends/saves/default/default-saves.cpp +++ b/backends/saves/default/default-saves.cpp @@ -44,9 +44,7 @@ #include "common/config-manager.h" #include "common/zlib.h" -#ifndef _WIN32_WCE #include <errno.h> // for removeSavefile() -#endif #if defined(USE_CLOUD) && defined(USE_LIBCURL) const char *DefaultSaveFileManager::TIMESTAMPS_FILENAME = "timestamps"; @@ -211,13 +209,12 @@ bool DefaultSaveFileManager::removeSavefile(const Common::String &filename) { // compile because of this, please let us know (scummvm-devel). // There is a nicely portable workaround, too: Make this method overloadable. if (remove(fileNode.getPath().c_str()) != 0) { -#ifndef _WIN32_WCE if (errno == EACCES) setError(Common::kWritePermissionDenied, "Search or write permission denied: "+fileNode.getName()); if (errno == ENOENT) setError(Common::kPathDoesNotExist, "removeSavefile: '"+fileNode.getName()+"' does not exist or path is invalid"); -#endif + return false; } else { return true; @@ -240,11 +237,6 @@ Common::String DefaultSaveFileManager::getSavePath() const { dir = ConfMan.get("savepath"); } -#ifdef _WIN32_WCE - if (dir.empty()) - dir = ConfMan.get("path"); -#endif - return dir; } |