diff options
Diffstat (limited to 'backends/networking/sdl_net/handlers/listajaxhandler.cpp')
-rw-r--r-- | backends/networking/sdl_net/handlers/listajaxhandler.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/backends/networking/sdl_net/handlers/listajaxhandler.cpp b/backends/networking/sdl_net/handlers/listajaxhandler.cpp index 57fa04d10d..f94b674a3c 100644 --- a/backends/networking/sdl_net/handlers/listajaxhandler.cpp +++ b/backends/networking/sdl_net/handlers/listajaxhandler.cpp @@ -23,8 +23,9 @@ #include "backends/networking/sdl_net/handlers/listajaxhandler.h" #include "backends/networking/sdl_net/handlerutils.h" #include "backends/networking/sdl_net/localwebserver.h" -#include "common/translation.h" +#include "common/config-manager.h" #include "common/json.h" +#include "common/translation.h" namespace Networking { @@ -40,7 +41,8 @@ Common::JSONObject ListAjaxHandler::listDirectory(Common::String path) { errorResult.setVal("type", new Common::JSONValue("error")); if (path == "" || path == "/") { - addItem(itemsList, IT_DIRECTORY, "/root/", _("File system root")); + if (ConfMan.hasKey("rootpath", "cloud")) + addItem(itemsList, IT_DIRECTORY, "/root/", _("File system root")); addItem(itemsList, IT_DIRECTORY, "/saves/", _("Saved games")); successResult.setVal("items", new Common::JSONValue(itemsList)); return successResult; |