mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
Added mapping from '/' to '\' since Symbian OS does n't support mixed mode (\ and / in the same filename).
svn-id: r26109
This commit is contained in:
parent
77855d5b41
commit
b9a54d55a6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user