diff options
author | Alexander Tkachev | 2016-07-21 15:53:00 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | 758f46ddf0ad312858fa0260c7e92a2d242dc40a (patch) | |
tree | c8cd3cf1bf8a07ac72cb9370cd61ffab94b91145 | |
parent | a30d0d19945890acae27a9fc3a2520f9b36fc04c (diff) | |
download | scummvm-rg350-758f46ddf0ad312858fa0260c7e92a2d242dc40a.tar.gz scummvm-rg350-758f46ddf0ad312858fa0260c7e92a2d242dc40a.tar.bz2 scummvm-rg350-758f46ddf0ad312858fa0260c7e92a2d242dc40a.zip |
CLOUD: Fix FolderDownloadRequest TODO
-rw-r--r-- | backends/cloud/folderdownloadrequest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backends/cloud/folderdownloadrequest.cpp b/backends/cloud/folderdownloadrequest.cpp index ebcd167506..1b3c1c57f5 100644 --- a/backends/cloud/folderdownloadrequest.cpp +++ b/backends/cloud/folderdownloadrequest.cpp @@ -69,6 +69,7 @@ void FolderDownloadRequest::directoryListedCallback(Storage::ListDirectoryRespon _pendingFiles = response.value; // remove all directories + // non-empty directories would be created by DumpFile, and empty ones are just ignored for (Common::Array<StorageFile>::iterator i = _pendingFiles.begin(); i != _pendingFiles.end();) if (i->isDirectory()) _pendingFiles.erase(i); @@ -111,7 +112,7 @@ void FolderDownloadRequest::downloadNextFile() { _currentFile = _pendingFiles.back(); _pendingFiles.pop_back(); - } while (_currentFile.isDirectory()); //TODO: may be create these directories (in case those are empty) + } while (_currentFile.isDirectory()); // directories are actually removed earlier, in the directoryListedCallback() sendCommand(GUI::kDownloadProgressCmd, (int)(getProgress() * 100)); |