diff options
Diffstat (limited to 'backends/networking/sdl_net/handlers/filesbasehandler.cpp')
-rw-r--r-- | backends/networking/sdl_net/handlers/filesbasehandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/networking/sdl_net/handlers/filesbasehandler.cpp b/backends/networking/sdl_net/handlers/filesbasehandler.cpp index 5e5787b624..135e0fb100 100644 --- a/backends/networking/sdl_net/handlers/filesbasehandler.cpp +++ b/backends/networking/sdl_net/handlers/filesbasehandler.cpp @@ -50,9 +50,9 @@ bool FilesBaseHandler::transformPath(Common::String &path, Common::String &prefi if (isDirectory && path.lastChar() != '/' && path.lastChar() != '\\') path += '/'; - if (path.hasPrefix("/root")) { + if (path.hasPrefix("/root") && ConfMan.hasKey("rootpath", "cloud")) { prefixToAdd = "/root/"; - prefixToRemove = (ConfMan.hasKey("rootpath", "cloud") ? ConfMan.get("rootpath", "cloud") : ""); + prefixToRemove = ConfMan.get("rootpath", "cloud"); if (prefixToRemove.size() && prefixToRemove.lastChar() != '/' && prefixToRemove.lastChar() != '\\') prefixToRemove += '/'; if (prefixToRemove == "/") prefixToRemove = ""; |