Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-08-24 | CLOUD: Fix saves sync | Alexander Tkachev | |
Tested that on actual unix system and found out a few minor bugs related to paths. | |||
2016-08-24 | CLOUD: Fix finishSuccess() warning | Alexander Tkachev | |
2016-08-24 | CLOUD: Fix some warnings | Alexander Tkachev | |
Mostly on format string | |||
2016-08-24 | CLOUD: Fix crash on exiting ScummVM while ConnMan is active | Peter Bozsó | |
2016-08-24 | CLOUD: Delete the incomplete file (when downloading) | Alexander Tkachev | |
2016-08-24 | CLOUD: Update save's timestamp on rewrite | Alexander Tkachev | |
This commit moves save/load timestamps static methods into DefaultSaveFileManager and fixes a few related bugs. | |||
2016-08-24 | CLOUD: Make OutSaveFile start saves sync | Alexander Tkachev | |
It had to become a proxy class in order to do that. finalize() starts the saves sync. | |||
2016-08-24 | CLOUD: Update local server's style.css | Alexander Tkachev | |
2016-08-24 | CLOUD: Fix "-Wcast-qual" | Alexander Tkachev | |
The passed buffer is not changed, so could be `const`. You might see that `postFields.c_str()` is `buffer`. Yet, as it's `postFields`, it's used for POST in curl_easy_setopt(), which copies the passed buffer. When `buffer` is used for upload, it's an actual bytes buffer, kept in CurlRequest. | |||
2016-08-24 | CLOUD: Fix "-Wconversion-null" | Alexander Tkachev | |
That `false` came from TranslationManager's function, which was returning bool, not a pointer. Somehow missed that line. | |||
2016-08-24 | CLOUD: Fix "zero-length format string" warning | Alexander Tkachev | |
2016-08-24 | CLOUD: Fix "type qualifiers ignored" warning | Alexander Tkachev | |
2016-08-24 | CLOUD: Fix "signed/unsigned integers" warning | Alexander Tkachev | |
The "comparison between signed and unsigned integer expressions" one. Note that in UploadRequests size() and pos() are acutally signed, because they could return -1. This commit implies that Requests are working with such Streams which doesn't. | |||
2016-08-24 | CLOUD: Use correct redirect_uris | Alexander Tkachev | |
Usage of #ifdef there (and in StorageWizardDialog) means that ScummVM doesn't support both local webserver and scummvm.org paths at the same time. It's either built with SDL_net (thus supporting localhost path) or without it (thus using scummvm.org). | |||
2016-08-24 | CLOUD: Add some mutexes in LocalWebserver | Alexander Tkachev | |
2016-08-24 | CLOUD: Embed cloud icons as byte arrays | Alexander Tkachev | |
2016-08-24 | CLOUD: Update IndexPageHandler to search wwwroot.zip | Alexander Tkachev | |
Now it also searches for that in themepath, not with SearchMan only. | |||
2016-08-24 | GUI: Hide StorageWizardDialog fields if server present | Alexander Tkachev | |
2016-08-24 | CLOUD: Add wwwroot | Alexander Tkachev | |
wwwroot.zip contains ScummVM local webserver's resources, such as template html pages, styles and images. One can make it from wwwroot directory contents by running make_archive.py script. It's added to scummvm.rc, so it's included in the executable (it works with MinGW, but I was unable to do that in VS yet). IndexPageHandler is the one who returns these resources. It uses index.html for "/". I'm replacing "{message}" with translated message, so that's the way I thought the templates should work. | |||
2016-08-24 | CLOUD: Update LocalWebserver | Alexander Tkachev | |
* fix handling connections; * fix idling strategy; * add setClientGetHandler() for SeekableReadStream; * add determineMimeType(). | |||
2016-08-24 | CLOUD: Fix Client | Alexander Tkachev | |
Cleanup in open() | |||
2016-08-24 | CLOUD: Add IndexPageHandler | Alexander Tkachev | |
This commit also adds LocalWebserver's stopOnIdle(). That means server is not stopped immediately, but only when all clients are served. | |||
2016-08-24 | CLOUD: Minor Client fix | Alexander Tkachev | |
2016-08-24 | CLOUD: Prepare code for path handlers | Alexander Tkachev | |
LocalWebserver would storage the handlers. Client now has methods like path() or query() to access different parts of the request. | |||
2016-08-24 | CLOUD: Add HTTP response codes in GetClientHandler | Alexander Tkachev | |
2016-08-24 | CLOUD: Minor Client fix | Alexander Tkachev | |
2016-08-24 | CLOUD: Add GetClientHandler | Alexander Tkachev | |
That ClientHandler is made for responding GET requests. It calculates stream's length, it allows to specify response code and headers, it can be used to transfer any ReadStream. | |||
2016-08-24 | CLOUD: Add ClientState::BAD_REQUEST | Alexander Tkachev | |
2016-08-24 | CLOUD: Add Networking::Client | Alexander Tkachev | |
Keeps current client's state | |||
2016-08-24 | CLOUD: Add LocalWebserver | Alexander Tkachev | |
Available as LocalServer singleton. It's being started and stopped by StorageWizardDialog. It doesn't handle clients yet, though. | |||
2016-08-24 | CLOUD: Init SDL_Net | Alexander Tkachev | |
2016-08-24 | CLOUD: Fix configuration handling in CloudManager | Peter Bozsó | |
2016-08-24 | CLOUD: Get rid of CloudConfigHelper, use kCloudDomain where approriate | Peter Bozsó | |
2016-08-24 | CLOUD: Do saves sync on Storage connect | Alexander Tkachev | |
2016-08-24 | CLOUD: Make Storage::savesSync() restart | Alexander Tkachev | |
If Storage::syncSaves() is called when sync is running, another sync would be automatically scheduled in the end of the current one. That could be helpful when we want to specify that we changed something during sync (created new save slot, for example). | |||
2016-08-24 | CLOUD: Add CloudConfigHelper to module.mk | Alexander Tkachev | |
2016-08-24 | CLOUD: Introduce CloudConfigHelper | Peter Bozsó | |
2016-08-24 | CLOUD: Fix end of namespace comment in CloudManager | Peter Bozsó | |
2016-08-24 | CLOUD: Fix include in CloudManager | Peter Bozsó | |
2016-08-24 | CLOUD: Introduce kStoragePrefix in CloudManager | Peter Bozsó | |
2016-08-24 | CLOUD: Remove unnecessary blank lines in switch statement | Peter Bozsó | |
2016-08-24 | CLOUD: Make enum StorageIDs' name singular | Peter Bozsó | |
2016-08-24 | CLOUD: Force handling of all StorageIDs values in ↵ | Peter Bozsó | |
CloudManager::getStorageConfigName() | |||
2016-08-24 | CLOUD: Fix getAccessToken() | Alexander Tkachev | |
KEY and SECRET should now load before getAccessToken() uses them, so it should work now. | |||
2016-08-24 | Fix DropboxStorage::codeFlowComplete() | Peter Bozsó | |
2016-08-24 | CLOUD: Fix initialization of NetworkReadStream | Peter Bozsó | |
"networkreadstream.cpp:51:2: error: delegating constructors are permitted only in C++11" | |||
2016-08-24 | CLOUD: Fix compilation error in savesyncrequest.h | Peter Bozsó | |
"savessyncrequest.h:35:35: error: use of undeclared identifier 'UINT_MAX'" | |||
2016-08-24 | GUI: Add EditText in StorageWizardDialog | Alexander Tkachev | |
One can enter the code, press 'Connect' button and get a working Storage! | |||
2016-08-24 | CLOUD: Add Request::date() | Alexander Tkachev | |
Used in SavesSyncRequest to update Storage's last sync date. | |||
2016-08-24 | CLOUD: Add ConnMan::urlEncode() | Alexander Tkachev | |
Tried to use it everywhere I should've use it. |