diff options
Diffstat (limited to 'backends/fs')
-rw-r--r-- | backends/fs/symbian/symbian-fs.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/backends/fs/symbian/symbian-fs.cpp b/backends/fs/symbian/symbian-fs.cpp index 4752134372..dd18d8b5e5 100644 --- a/backends/fs/symbian/symbian-fs.cpp +++ b/backends/fs/symbian/symbian-fs.cpp @@ -69,6 +69,16 @@ static const char *lastPathComponent(const Common::String &str) { return cur + 1; } +static void fixFilePath(Common::String& path) { + TInt len = path.size(); + + for (TInt index = 0; index < len; index++) { + if (path[index] == '/') { + path[index] = '\\'; + } + } +} + AbstractFilesystemNode *AbstractFilesystemNode::getCurrentDirectory() { char path[MAXPATHLEN]; getcwd(path, MAXPATHLEN); @@ -99,6 +109,9 @@ SymbianFilesystemNode::SymbianFilesystemNode(const String &path) { _isPseudoRoot = false; _path = path; + + fixFilePath(_path); + _displayName = lastPathComponent(_path); TEntry fileAttribs; |