diff options
author | Alexander Tkachev | 2016-06-09 14:23:14 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | 9b15ec9989fc67a0537b1e70732d3dba48797165 (patch) | |
tree | 4867997d8e41d756e4b25654756818bd020031d4 /backends/cloud/googledrive | |
parent | af9930482e17f4b55e46707fc017090e4c24a38e (diff) | |
download | scummvm-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')
-rw-r--r-- | backends/cloud/googledrive/googledrivestorage.cpp | 3 |
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; } |