diff options
author | Alexander Tkachev | 2016-08-30 21:08:02 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-30 21:08:02 +0600 |
commit | f8fe150130c04478818461a9241dad2995ebefb9 (patch) | |
tree | 4e3e358e0f987de3d2db48fafa552be563457cb9 /backends/networking/sdl_net/handlers | |
parent | 579cb59af52b4b891306ca8be430f772ecfb0364 (diff) | |
download | scummvm-rg350-f8fe150130c04478818461a9241dad2995ebefb9.tar.gz scummvm-rg350-f8fe150130c04478818461a9241dad2995ebefb9.tar.bz2 scummvm-rg350-f8fe150130c04478818461a9241dad2995ebefb9.zip |
CLOUD: Fix Webserver's usage of DefaultSaveFileManager
concatWithSavesPath() is only defined when curl is used, but was used in
Webserver even when curl is unavailable.
Diffstat (limited to 'backends/networking/sdl_net/handlers')
-rw-r--r-- | backends/networking/sdl_net/handlers/filesbasehandler.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backends/networking/sdl_net/handlers/filesbasehandler.cpp b/backends/networking/sdl_net/handlers/filesbasehandler.cpp index 135e0fb100..a585af9b5a 100644 --- a/backends/networking/sdl_net/handlers/filesbasehandler.cpp +++ b/backends/networking/sdl_net/handlers/filesbasehandler.cpp @@ -69,8 +69,12 @@ bool FilesBaseHandler::transformPath(Common::String &path, Common::String &prefi prefixToAdd = "/saves/"; // determine savepath (prefix to remove) +#ifdef USE_LIBCURL DefaultSaveFileManager *manager = dynamic_cast<DefaultSaveFileManager *>(g_system->getSavefileManager()); prefixToRemove = (manager ? manager->concatWithSavesPath("") : ConfMan.get("savepath")); +#else + prefixToRemove = ConfMan.get("savepath"); +#endif if (prefixToRemove.size() && prefixToRemove.lastChar() != '/' && prefixToRemove.lastChar() != '\\') prefixToRemove += '/'; |