mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-21 19:51:49 +00:00
RISCOS: Improve detection of absolute paths
This commit is contained in:
parent
509b12de65
commit
4d2e1d16b1
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user