aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Tkachev2016-07-04 15:23:13 +0600
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commit10250af2516c8f7d41cc79e3c55b59f2eeecfa92 (patch)
treed3a6ed8f218b65d364853ae38466ab63a35ece1a
parentdc0a95617227c2a2489150aec69ec0c464cd30de (diff)
downloadscummvm-rg350-10250af2516c8f7d41cc79e3c55b59f2eeecfa92.tar.gz
scummvm-rg350-10250af2516c8f7d41cc79e3c55b59f2eeecfa92.tar.bz2
scummvm-rg350-10250af2516c8f7d41cc79e3c55b59f2eeecfa92.zip
CLOUD: Fix CloudManager's methods
Were not returning created Request.
-rw-r--r--backends/cloud/cloudmanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/cloud/cloudmanager.cpp b/backends/cloud/cloudmanager.cpp
index 0a5006ccef..68c7e9aa8a 100644
--- a/backends/cloud/cloudmanager.cpp
+++ b/backends/cloud/cloudmanager.cpp
@@ -217,7 +217,7 @@ void CloudManager::printBool(Storage::BoolResponse response) const {
Networking::Request *CloudManager::listDirectory(Common::String path, Storage::ListDirectoryCallback callback, Networking::ErrorCallback errorCallback, bool recursive) {
Storage *storage = getCurrentStorage();
- if (storage) storage->listDirectory(path, callback, errorCallback, recursive);
+ if (storage) return storage->listDirectory(path, callback, errorCallback, recursive);
else {
delete callback;
delete errorCallback;
@@ -228,7 +228,7 @@ Networking::Request *CloudManager::listDirectory(Common::String path, Storage::L
Networking::Request *CloudManager::downloadFolder(Common::String remotePath, Common::String localPath, Storage::FileArrayCallback callback, Networking::ErrorCallback errorCallback, bool recursive) {
Storage *storage = getCurrentStorage();
- if (storage) storage->downloadFolder(remotePath, localPath, callback, errorCallback, recursive);
+ if (storage) return storage->downloadFolder(remotePath, localPath, callback, errorCallback, recursive);
else {
delete callback;
delete errorCallback;