diff options
author | Alexander Tkachev | 2016-06-07 16:27:04 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | bf71ba9a1c98b39647edb248e913322ee38a0af5 (patch) | |
tree | 0451db33ffbe35dab7428a13b0db0dc6ba02c95b /backends/cloud/googledrive/googledrivestorage.cpp | |
parent | c968f0143c5e36cc9fc429832622eb180732caf8 (diff) | |
download | scummvm-rg350-bf71ba9a1c98b39647edb248e913322ee38a0af5.tar.gz scummvm-rg350-bf71ba9a1c98b39647edb248e913322ee38a0af5.tar.bz2 scummvm-rg350-bf71ba9a1c98b39647edb248e913322ee38a0af5.zip |
CLOUD: Update GoogleDriveCreateDirectoryRequest
Now it also creates the "base" ScummVM directory if there is no such
directory yet. This way SavesSyncRequest works fine when no "ScummVM" or
"ScummVM/Saves" folder exist in the Google Drive.
Diffstat (limited to 'backends/cloud/googledrive/googledrivestorage.cpp')
-rw-r--r-- | backends/cloud/googledrive/googledrivestorage.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/backends/cloud/googledrive/googledrivestorage.cpp b/backends/cloud/googledrive/googledrivestorage.cpp index dce35b5904..d7dbd529e5 100644 --- a/backends/cloud/googledrive/googledrivestorage.cpp +++ b/backends/cloud/googledrive/googledrivestorage.cpp @@ -315,10 +315,6 @@ Networking::Request *GoogleDriveStorage::createDirectory(Common::String path, Bo } } - if (parentPath == "") { - return createDirectoryWithParentId("root", directoryName, callback, errorCallback); - } - return addRequest(new GoogleDriveCreateDirectoryRequest(this, parentPath, directoryName, callback, errorCallback)); } @@ -353,7 +349,7 @@ Networking::Request *GoogleDriveStorage::info(StorageInfoCallback callback, Netw return addRequest(request); } -Common::String GoogleDriveStorage::savesDirectoryPath() { return "saves/"; } +Common::String GoogleDriveStorage::savesDirectoryPath() { return "scummvm/saves/"; } GoogleDriveStorage *GoogleDriveStorage::loadFromConfig(Common::String keyPrefix) { loadKeyAndSecret(); |