diff options
author | Lars Persson | 2009-02-19 08:18:50 +0000 |
---|---|---|
committer | Lars Persson | 2009-02-19 08:18:50 +0000 |
commit | f3d8087dd3a5aa92ff020b38536bc9c6ac496b23 (patch) | |
tree | 9daaf8c95f1ab2bd0ec95b6903f393fd0d769b6e /backends | |
parent | 0ac07498102218f1c0ba83b82bff15dcd439abf4 (diff) | |
download | scummvm-rg350-f3d8087dd3a5aa92ff020b38536bc9c6ac496b23.tar.gz scummvm-rg350-f3d8087dd3a5aa92ff020b38536bc9c6ac496b23.tar.bz2 scummvm-rg350-f3d8087dd3a5aa92ff020b38536bc9c6ac496b23.zip |
Updated so z:\ paths will be reported properly as a directory and valid path.
svn-id: r38536
Diffstat (limited to 'backends')
-rw-r--r-- | backends/fs/symbian/symbian-fs.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/backends/fs/symbian/symbian-fs.cpp b/backends/fs/symbian/symbian-fs.cpp index edb44d9ba9..d970cf3f73 100644 --- a/backends/fs/symbian/symbian-fs.cpp +++ b/backends/fs/symbian/symbian-fs.cpp @@ -66,6 +66,13 @@ public: TPtrC8 ptr((const unsigned char*) _path.c_str(), _path.size()); fname.Copy(ptr); TBool fileExists = BaflUtils::FileExists(static_cast<OSystem_SDL_Symbian*> (g_system)->FsSession(), fname); + if(!fileExists) { + + TParsePtrC parser(fname); + if(parser.PathPresent() && parser.Path().Compare(_L("\\")) == KErrNone && !parser.NameOrExtPresent()) { + fileExists = ETrue; + } + } return fileExists; } virtual Common::String getDisplayName() const { return _displayName; } @@ -130,6 +137,10 @@ SymbianFilesystemNode::SymbianFilesystemNode(const Common::String &path) { } else { _isValid = ETrue; _isDirectory = EFalse; + TParsePtrC parser(fname); + if(parser.PathPresent() && parser.Path().Compare(_L("\\")) == KErrNone && !parser.NameOrExtPresent()) { + _isDirectory = ETrue; + } } } |