diff options
author | Alexander Tkachev | 2016-06-03 15:14:12 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | da3b7bd8d9f3d3828b8cea6dff60e5f43e7ad4b1 (patch) | |
tree | 35d3054efddffe2343b66ebb9a62cbb1c342494e /backends/cloud/dropbox | |
parent | b02b16ab98330f3471919a57ec0d4e087e2fa924 (diff) | |
download | scummvm-rg350-da3b7bd8d9f3d3828b8cea6dff60e5f43e7ad4b1.tar.gz scummvm-rg350-da3b7bd8d9f3d3828b8cea6dff60e5f43e7ad4b1.tar.bz2 scummvm-rg350-da3b7bd8d9f3d3828b8cea6dff60e5f43e7ad4b1.zip |
CLOUD: Add GoogleDriveStorage
It has its own GoogleDriveTokenRefresher and knows how to do info().
This commit also contains JSON int -> long long int fix and
CurlJsonRequest '\n' -> ' ' fix.
Diffstat (limited to 'backends/cloud/dropbox')
-rw-r--r-- | backends/cloud/dropbox/dropboxuploadrequest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/cloud/dropbox/dropboxuploadrequest.cpp b/backends/cloud/dropbox/dropboxuploadrequest.cpp index 50a1b8a612..bf8e43d7cb 100644 --- a/backends/cloud/dropbox/dropboxuploadrequest.cpp +++ b/backends/cloud/dropbox/dropboxuploadrequest.cpp @@ -79,7 +79,7 @@ void DropboxUploadRequest::uploadNextPart() { url += "finish"; Common::JSONObject jsonCursor, jsonCommit; jsonCursor.setVal("session_id", new Common::JSONValue(_sessionId)); - jsonCursor.setVal("offset", new Common::JSONValue(_contentsStream->pos())); + jsonCursor.setVal("offset", new Common::JSONValue((long long int)_contentsStream->pos())); jsonCommit.setVal("path", new Common::JSONValue(_savePath)); jsonCommit.setVal("mode", new Common::JSONValue("overwrite")); jsonCommit.setVal("autorename", new Common::JSONValue(false)); @@ -90,7 +90,7 @@ void DropboxUploadRequest::uploadNextPart() { url += "append_v2"; Common::JSONObject jsonCursor; jsonCursor.setVal("session_id", new Common::JSONValue(_sessionId)); - jsonCursor.setVal("offset", new Common::JSONValue(_contentsStream->pos())); + jsonCursor.setVal("offset", new Common::JSONValue((long long int)_contentsStream->pos())); jsonRequestParameters.setVal("cursor", new Common::JSONValue(jsonCursor)); jsonRequestParameters.setVal("close", new Common::JSONValue(false)); } |