mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-03 00:35:54 +00:00
CLOUD: Minor fixes
This commit is contained in:
parent
67789c3c16
commit
b614869de8
@ -48,6 +48,11 @@ DropboxUploadRequest::~DropboxUploadRequest() {
|
||||
void DropboxUploadRequest::start() {
|
||||
_ignoreCallback = true;
|
||||
if (_workingRequest) _workingRequest->finish();
|
||||
if (!_contentsStream) {
|
||||
warning("DropboxUploadRequest: cannot start because stream is invalid");
|
||||
finishError(Networking::ErrorResponse(this, false, true, "", -1));
|
||||
return;
|
||||
}
|
||||
if (!_contentsStream->seek(0)) {
|
||||
warning("DropboxUploadRequest: cannot restart because stream couldn't seek(0)");
|
||||
finishError(Networking::ErrorResponse(this, false, true, "", -1));
|
||||
|
@ -342,7 +342,11 @@ void SavesSyncRequest::finishSuccess(bool success) {
|
||||
}
|
||||
|
||||
void SavesSyncRequest::loadTimestamps() {
|
||||
//start with listing all the files in saves/ directory and setting invalid timestamp to them
|
||||
//refresh the files list
|
||||
Common::Array<Common::String> files;
|
||||
g_system->getSavefileManager()->updateSavefilesList(files);
|
||||
|
||||
//start with listing all the files in saves/ directory and setting invalid timestamp to them
|
||||
Common::StringArray localFiles = g_system->getSavefileManager()->listSavefiles("*");
|
||||
for (uint32 i = 0; i < localFiles.size(); ++i)
|
||||
_localFilesTimestamps[localFiles[i]] = INVALID_TIMESTAMP;
|
||||
|
Loading…
x
Reference in New Issue
Block a user