diff options
author | Alexander Tkachev | 2016-06-07 16:25:05 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | c968f0143c5e36cc9fc429832622eb180732caf8 (patch) | |
tree | 1e4137977930ef414eba7993842678aafd438fbc | |
parent | 74a3eba8d67ec5909b950e6b2486ba5e102fb8d0 (diff) | |
download | scummvm-rg350-c968f0143c5e36cc9fc429832622eb180732caf8.tar.gz scummvm-rg350-c968f0143c5e36cc9fc429832622eb180732caf8.tar.bz2 scummvm-rg350-c968f0143c5e36cc9fc429832622eb180732caf8.zip |
CLOUD: Make GoogleDriveResolveIdRequest case-insensitive
-rw-r--r-- | backends/cloud/googledrive/googledriveresolveidrequest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backends/cloud/googledrive/googledriveresolveidrequest.cpp b/backends/cloud/googledrive/googledriveresolveidrequest.cpp index a9adb82969..9cd13a78a6 100644 --- a/backends/cloud/googledrive/googledriveresolveidrequest.cpp +++ b/backends/cloud/googledrive/googledriveresolveidrequest.cpp @@ -57,7 +57,7 @@ void GoogleDriveResolveIdRequest::start() { } void GoogleDriveResolveIdRequest::listNextDirectory(StorageFile fileToReturn) { - if (_currentDirectory == _requestedPath) { + if (_currentDirectory.equalsIgnoreCase(_requestedPath)) { finishFile(fileToReturn); return; } @@ -89,7 +89,7 @@ void GoogleDriveResolveIdRequest::listedDirectoryCallback(Storage::FileArrayResp Common::Array<StorageFile> &files = response.value; bool found = false; for (uint32 i = 0; i < files.size(); ++i) { - if (files[i].isDirectory() && files[i].name() == currentLevelName) { + if (files[i].isDirectory() && files[i].name().equalsIgnoreCase(currentLevelName)) { if (_currentDirectory != "") _currentDirectory += "/"; _currentDirectory += files[i].name(); _currentDirectoryId = files[i].path(); @@ -104,7 +104,7 @@ void GoogleDriveResolveIdRequest::listedDirectoryCallback(Storage::FileArrayResp Common::String path = _currentDirectory; if (path != "") path += "/"; path += currentLevelName; - if (path == _requestedPath) finishError(Networking::ErrorResponse(this, false, true, Common::String("no such file found in its parent directory\n")+_currentDirectoryId, 404)); + if (path.equalsIgnoreCase(_requestedPath)) finishError(Networking::ErrorResponse(this, false, true, Common::String("no such file found in its parent directory\n")+_currentDirectoryId, 404)); else finishError(Networking::ErrorResponse(this, false, true, "subdirectory not found", 400)); } } |