aboutsummaryrefslogtreecommitdiff
path: root/backends/cloud/googledrive/googledrivestorage.cpp
diff options
context:
space:
mode:
authorAlexander Tkachev2016-06-09 14:23:14 +0600
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commit9b15ec9989fc67a0537b1e70732d3dba48797165 (patch)
tree4867997d8e41d756e4b25654756818bd020031d4 /backends/cloud/googledrive/googledrivestorage.cpp
parentaf9930482e17f4b55e46707fc017090e4c24a38e (diff)
downloadscummvm-rg350-9b15ec9989fc67a0537b1e70732d3dba48797165.tar.gz
scummvm-rg350-9b15ec9989fc67a0537b1e70732d3dba48797165.tar.bz2
scummvm-rg350-9b15ec9989fc67a0537b1e70732d3dba48797165.zip
CLOUD: Update CloudManager
It now has methods to update Storage's information.
Diffstat (limited to 'backends/cloud/googledrive/googledrivestorage.cpp')
-rw-r--r--backends/cloud/googledrive/googledrivestorage.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/backends/cloud/googledrive/googledrivestorage.cpp b/backends/cloud/googledrive/googledrivestorage.cpp
index 18ddca5e94..143b7ac52c 100644
--- a/backends/cloud/googledrive/googledrivestorage.cpp
+++ b/backends/cloud/googledrive/googledrivestorage.cpp
@@ -180,6 +180,9 @@ void GoogleDriveStorage::infoInnerCallback(StorageInfoCallback outerCallback, Ne
quotaAllocated = atoull(limit);
}
+ CloudMan.setStorageUsedSpace(kStorageGoogleDriveId, quotaUsed); //TODO that's not ScummVM's actually
+ CloudMan.setStorageUsername(kStorageGoogleDriveId, email);
+
(*outerCallback)(StorageInfoResponse(nullptr, StorageInfo(uid, name, email, quotaUsed, quotaAllocated)));
delete outerCallback;
}