diff options
| author | Alexander Tkachev | 2016-06-08 12:45:58 +0600 | 
|---|---|---|
| committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 | 
| commit | 60add0df1b63dbd31b88edcabf0769eb675efab0 (patch) | |
| tree | a09c1885b965c726aeb1e75c57fe9a3014ac4438 /backends/cloud/storage.cpp | |
| parent | 7e6a89c141d621b5caf8c66a58ecbcf60b2d52c1 (diff) | |
| download | scummvm-rg350-60add0df1b63dbd31b88edcabf0769eb675efab0.tar.gz scummvm-rg350-60add0df1b63dbd31b88edcabf0769eb675efab0.tar.bz2 scummvm-rg350-60add0df1b63dbd31b88edcabf0769eb675efab0.zip | |
CLOUD: Update Requests to use StorageFile::id()
Only two places to update, as others still require id resolving.
Diffstat (limited to 'backends/cloud/storage.cpp')
| -rw-r--r-- | backends/cloud/storage.cpp | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/backends/cloud/storage.cpp b/backends/cloud/storage.cpp index 5458276e39..f0c1319846 100644 --- a/backends/cloud/storage.cpp +++ b/backends/cloud/storage.cpp @@ -92,6 +92,11 @@ Networking::Request *Storage::download(Common::String remotePath, Common::String  	return addRequest(new DownloadRequest(this, callback, errorCallback, remotePath, f));  } +Networking::Request *Storage::downloadById(Common::String remoteId, Common::String localPath, BoolCallback callback, Networking::ErrorCallback errorCallback) { +	//most Storages use paths instead of ids, so this should work +	return download(remoteId, localPath, callback, errorCallback); +} +  Networking::Request *Storage::downloadFolder(Common::String remotePath, Common::String localPath, FileArrayCallback callback, Networking::ErrorCallback errorCallback, bool recursive) {  	if (!errorCallback) errorCallback = getErrorPrintingCallback();  	return addRequest(new FolderDownloadRequest(this, callback, errorCallback, remotePath, localPath, recursive)); | 
