Remove SYMBIAN special handing from default handler.

svn-id: r34403
This commit is contained in:
Lars Persson 2008-09-07 12:54:26 +00:00
parent 0d762f5260
commit aabf8ab1f4

View File

@ -36,7 +36,7 @@
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#if defined(UNIX) || defined(__SYMBIAN32__) #if defined(UNIX)
#include <sys/stat.h> #include <sys/stat.h>
#endif #endif
@ -46,8 +46,6 @@
#else #else
#define DEFAULT_SAVE_PATH ".scummvm" #define DEFAULT_SAVE_PATH ".scummvm"
#endif #endif
#elif defined(__SYMBIAN32__)
#define DEFAULT_SAVE_PATH "Savegames"
#endif #endif
DefaultSaveFileManager::DefaultSaveFileManager() { DefaultSaveFileManager::DefaultSaveFileManager() {
@ -63,10 +61,6 @@ DefaultSaveFileManager::DefaultSaveFileManager() {
savePath += "/" DEFAULT_SAVE_PATH; savePath += "/" DEFAULT_SAVE_PATH;
ConfMan.registerDefault("savepath", savePath); ConfMan.registerDefault("savepath", savePath);
} }
#elif defined(__SYMBIAN32__)
savePath = Symbian::GetExecutablePath();
savePath += DEFAULT_SAVE_PATH "\\";
ConfMan.registerDefault("savepath", savePath);
#endif #endif
#endif // #ifdef DEFAULT_SAVE_PATH #endif // #ifdef DEFAULT_SAVE_PATH
} }
@ -95,7 +89,7 @@ void DefaultSaveFileManager::checkPath(const Common::FilesystemNode &dir) {
const Common::String path = dir.getPath(); const Common::String path = dir.getPath();
clearError(); clearError();
#if defined(UNIX) || defined(__SYMBIAN32__) #if defined(UNIX)
struct stat sb; struct stat sb;
// Check whether the dir exists // Check whether the dir exists
@ -107,11 +101,9 @@ void DefaultSaveFileManager::checkPath(const Common::FilesystemNode &dir) {
case EACCES: case EACCES:
setError(SFM_DIR_ACCESS, "Search or write permission denied: "+path); setError(SFM_DIR_ACCESS, "Search or write permission denied: "+path);
break; break;
#if !defined(__SYMBIAN32__)
case ELOOP: case ELOOP:
setError(SFM_DIR_LOOP, "Too many symbolic links encountered while traversing the path: "+path); setError(SFM_DIR_LOOP, "Too many symbolic links encountered while traversing the path: "+path);
break; break;
#endif
case ENAMETOOLONG: case ENAMETOOLONG:
setError(SFM_DIR_NAMETOOLONG, "The path name is too long: "+path); setError(SFM_DIR_NAMETOOLONG, "The path name is too long: "+path);
break; break;
@ -129,11 +121,9 @@ void DefaultSaveFileManager::checkPath(const Common::FilesystemNode &dir) {
case EMLINK: case EMLINK:
setError(SFM_DIR_LINKMAX, "The link count of the parent directory would exceed {LINK_MAX}: "+path); setError(SFM_DIR_LINKMAX, "The link count of the parent directory would exceed {LINK_MAX}: "+path);
break; break;
#if !defined(__SYMBIAN32__)
case ELOOP: case ELOOP:
setError(SFM_DIR_LOOP, "Too many symbolic links encountered while traversing the path: "+path); setError(SFM_DIR_LOOP, "Too many symbolic links encountered while traversing the path: "+path);
break; break;
#endif
case ENAMETOOLONG: case ENAMETOOLONG:
setError(SFM_DIR_NAMETOOLONG, "The path name is too long: "+path); setError(SFM_DIR_NAMETOOLONG, "The path name is too long: "+path);
break; break;