diff options
author | Kostas Nakos | 2007-11-03 21:17:40 +0000 |
---|---|---|
committer | Kostas Nakos | 2007-11-03 21:17:40 +0000 |
commit | b6165d32806c6f8ec0acaf7fa4cdb4c2089bca8a (patch) | |
tree | 9bfc3db52ccff2479558de2ec0a2d523608e697b | |
parent | c640d1c604f219a5be5412d6c5ea8a85f44ec4b4 (diff) | |
download | scummvm-rg350-b6165d32806c6f8ec0acaf7fa4cdb4c2089bca8a.tar.gz scummvm-rg350-b6165d32806c6f8ec0acaf7fa4cdb4c2089bca8a.tar.bz2 scummvm-rg350-b6165d32806c6f8ec0acaf7fa4cdb4c2089bca8a.zip |
work around lack of errno in ce
svn-id: r29387
-rw-r--r-- | backends/saves/default/default-saves.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backends/saves/default/default-saves.cpp b/backends/saves/default/default-saves.cpp index bb5f038b68..f4355e48cd 100644 --- a/backends/saves/default/default-saves.cpp +++ b/backends/saves/default/default-saves.cpp @@ -236,12 +236,13 @@ bool DefaultSaveFileManager::removeSavefile(const char *filename) { join_paths(filename, getSavePath(), buf, sizeof(buf)); if (remove(buf) != 0) { +#ifndef _WIN32_WCE if (errno == EACCES) setError(SFM_DIR_ACCESS, Common::String("Search or write permission denied")); if (errno == ENOENT) setError(SFM_DIR_NOENT, Common::String("A component of the path does not exist, or the path is an empty string")); - +#endif return false; } else { return true; |