aboutsummaryrefslogtreecommitdiff
path: root/backends/fs/riscos
diff options
context:
space:
mode:
authorCameron Cawley2017-11-21 04:52:21 +0000
committerThierry Crozat2017-11-28 22:23:58 +0000
commit4d2e1d16b1540553a330f0a74826bb5782e278de (patch)
tree97d92cca3668c2e35daa9f32a291d53f4176181c /backends/fs/riscos
parent509b12de6599605ece2e64bd96ae72b60c2c52c4 (diff)
downloadscummvm-rg350-4d2e1d16b1540553a330f0a74826bb5782e278de.tar.gz
scummvm-rg350-4d2e1d16b1540553a330f0a74826bb5782e278de.tar.bz2
scummvm-rg350-4d2e1d16b1540553a330f0a74826bb5782e278de.zip
RISCOS: Improve detection of absolute paths
Diffstat (limited to 'backends/fs/riscos')
-rw-r--r--backends/fs/riscos/riscos-fs.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/backends/fs/riscos/riscos-fs.cpp b/backends/fs/riscos/riscos-fs.cpp
index 34d78776e3..7ee20e7c0a 100644
--- a/backends/fs/riscos/riscos-fs.cpp
+++ b/backends/fs/riscos/riscos-fs.cpp
@@ -83,6 +83,9 @@ Common::String RISCOSFilesystemNode::toUnix(Common::String &path) {
if (out.contains("$")) {
char *x = strstr(out.c_str(), "$");
start = x ? x - out.c_str() : -1;
+ } else if (out.contains(":")) {
+ char *x = strstr(out.c_str(), ":");
+ start = x ? x - out.c_str() : -1;
}
for (uint32 ptr = start; ptr < out.size(); ptr += 1) {
@@ -101,7 +104,7 @@ Common::String RISCOSFilesystemNode::toUnix(Common::String &path) {
}
}
- if (out.contains("$"))
+ if (out.contains("$") || out.contains(":"))
out = "/" + out;
return out;