aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Persson2008-09-07 12:54:26 +0000
committerLars Persson2008-09-07 12:54:26 +0000
commitaabf8ab1f4f4c59f39f4b92250116c9814d9c083 (patch)
tree0597d8185ecf0dfa99bc9959b38f14062baf7723
parent0d762f5260568ad8bb6f9c77b168b144d46e0020 (diff)
downloadscummvm-rg350-aabf8ab1f4f4c59f39f4b92250116c9814d9c083.tar.gz
scummvm-rg350-aabf8ab1f4f4c59f39f4b92250116c9814d9c083.tar.bz2
scummvm-rg350-aabf8ab1f4f4c59f39f4b92250116c9814d9c083.zip
Remove SYMBIAN special handing from default handler.
svn-id: r34403
-rw-r--r--backends/saves/default/default-saves.cpp14
1 files changed, 2 insertions, 12 deletions
diff --git a/backends/saves/default/default-saves.cpp b/backends/saves/default/default-saves.cpp
index bc326d615a..0cfd265890 100644
--- a/backends/saves/default/default-saves.cpp
+++ b/backends/saves/default/default-saves.cpp
@@ -36,7 +36,7 @@
#include <string.h>
#include <errno.h>
-#if defined(UNIX) || defined(__SYMBIAN32__)
+#if defined(UNIX)
#include <sys/stat.h>
#endif
@@ -46,8 +46,6 @@
#else
#define DEFAULT_SAVE_PATH ".scummvm"
#endif
-#elif defined(__SYMBIAN32__)
-#define DEFAULT_SAVE_PATH "Savegames"
#endif
DefaultSaveFileManager::DefaultSaveFileManager() {
@@ -63,10 +61,6 @@ DefaultSaveFileManager::DefaultSaveFileManager() {
savePath += "/" DEFAULT_SAVE_PATH;
ConfMan.registerDefault("savepath", savePath);
}
-#elif defined(__SYMBIAN32__)
- savePath = Symbian::GetExecutablePath();
- savePath += DEFAULT_SAVE_PATH "\\";
- ConfMan.registerDefault("savepath", savePath);
#endif
#endif // #ifdef DEFAULT_SAVE_PATH
}
@@ -95,7 +89,7 @@ void DefaultSaveFileManager::checkPath(const Common::FilesystemNode &dir) {
const Common::String path = dir.getPath();
clearError();
-#if defined(UNIX) || defined(__SYMBIAN32__)
+#if defined(UNIX)
struct stat sb;
// Check whether the dir exists
@@ -107,11 +101,9 @@ void DefaultSaveFileManager::checkPath(const Common::FilesystemNode &dir) {
case EACCES:
setError(SFM_DIR_ACCESS, "Search or write permission denied: "+path);
break;
-#if !defined(__SYMBIAN32__)
case ELOOP:
setError(SFM_DIR_LOOP, "Too many symbolic links encountered while traversing the path: "+path);
break;
-#endif
case ENAMETOOLONG:
setError(SFM_DIR_NAMETOOLONG, "The path name is too long: "+path);
break;
@@ -129,11 +121,9 @@ void DefaultSaveFileManager::checkPath(const Common::FilesystemNode &dir) {
case EMLINK:
setError(SFM_DIR_LINKMAX, "The link count of the parent directory would exceed {LINK_MAX}: "+path);
break;
-#if !defined(__SYMBIAN32__)
case ELOOP:
setError(SFM_DIR_LOOP, "Too many symbolic links encountered while traversing the path: "+path);
break;
-#endif
case ENAMETOOLONG:
setError(SFM_DIR_NAMETOOLONG, "The path name is too long: "+path);
break;