Commit Graph
6753 Commits
Author SHA1 Message Date
Cameron Cawley d4cc366334 ANDROID: Don't hide the virtual keyboard when the Enter key is pressed 2019-08-02 11:25:47 +01:00
Alexander Tkachev f6a17e679f CLOUD: Ask user to manually enable Storage
For more security, newly connected Storage only gets username/used space
information and is disabled until user manually presses the button.
2019-07-30 14:51:41 -04:00
Alexander Tkachev 85431c39bf CLOUD: Change interaction with /refresh endpoint
Refresh token is now passed as custom HTTP header, not in GET parameter,
to prevent them being written into server logs.
2019-07-30 14:51:41 -04:00
Alexander Tkachev e7ca2b8db0 CLOUD: Ignore hidden files in sync/download
In PR#1754 we've discussed and decided to ignore hidden (having a name
starting with '.') files while syncing saves or downloading game files.
This commit adds a CloudManager method to test whether file should be
ignored, and this method could be extended later if we need to ignore
some other specific file names.
2019-07-30 14:51:41 -04:00
Alexander Tkachev 16d97b6948 CLOUD: Minor fixes for the PR#1754
- added missing 'd' in "%d" in SavesSyncRequest;
- removed trailing ',' in enum in gui/options.h;
- fixed #endif to have // before USE_LIBCURL in gui/options.h.
2019-07-30 14:51:41 -04:00
Alexander Tkachev 99c2418d1a GUI: Rewrite Cloud tab
- StorageWizardDialog is removed, along with bmps it was using;
- EditTextWidget now accepts custom font in constructor;
- ScrollContainer scrollbar now jumps to top when content height changes
so it's "overscrolled";
- IndexPageHandler now does not awaits for `code` GET-parameter, as
local webserver is no longer used to connect Storages;
- CloudManager and all corresponding Storages are updated to support
disconnecting and to notify about successful connection.
2019-07-30 14:51:41 -04:00
Alexander Tkachev 31628d6428 CLOUD: Refactor BaseStorage largest methods
Not sure if that's really better, but it was really annoying to
copy-paste `delete a; delete b; return;` in every error-handling
section.
2019-07-30 14:51:41 -04:00
Alexander Tkachev 72c7f8226c CLOUD: Minor cleanup in OneDriveTokenRefresher 2019-07-30 14:51:41 -04:00
Alexander Tkachev 1e92e7b9f3 CLOUD: Fix saves syncing
This mostly affects OneDrive saves syncing, because it is the only cloud
provider to return 0 as timestamp of (non-)created file. 0 is treated as
EOF in /saves/timestamps file, thus all timestamps after such 0
timestamps were ignored and files were reuploaded as being "new". This
commit also adds more verbose debug information on SavesSyncRequest
decisions making for easier debugging.
2019-07-30 14:51:41 -04:00
Alexander Tkachev c1124c9cda CLOUD: Handle Cloud requests more frequently
ConnectionManager used to poll Cloud requests every second, while curl
requests were polled every 1/20th of a second. If curl request was over
at, say, frame #21, corresponding Cloud request would've only work with
that at frame #40 (950 ms later), which was making everything
cloud-related slower than it could be. This commit fixes it by making
Cloud polling period the same as curl polling period, and additionally
raises FPS to 25.
2019-07-30 14:51:41 -04:00
Alexander Tkachev edbea10c2e CLOUD: Fix OneDriveStorage API interaction
Something changed and old API endpoint "api.onedrive.com" now does not
work. The other one, "graph.microsoft.com", does, but there were some
other changes in JSON it returns. These changes are also in this commit.
2019-07-30 14:51:41 -04:00
Alexander Tkachev e8669f693c CLOUD: Update BaseStorage to expect no refresh_token
While refreshing access_token, some cloud providers also pass a new
refresh_token. Google Drive does not, and accepts the same refresh_token
next time. These changes allow this to happen.
2019-07-30 14:51:41 -04:00
Alexander Tkachev 60504dce75 CLOUD: Update storages to refresh token via cloud.scummvm.org 2019-07-30 14:51:41 -04:00
Alexander Tkachev 4a427faf9c CLOUD: Get rid of 'dists/clouds/cloud_keys.h' 2019-07-30 14:51:41 -04:00
Alexander Tkachev 0ee0e2d537 CLOUD: Update GoogleDriveStorage and BoxStorage to auth via cloud.scummvm.org 2019-07-30 14:51:41 -04:00
Alexander Tkachev 8333cce498 CLOUD: Update OneDriveStorage to work via cloud.scummvm.org 2019-07-30 14:51:41 -04:00
Alexander Tkachev 64fd116092 CLOUD: Add BaseStorage, which does auth via cloud.scummvm.org 2019-07-30 14:51:41 -04:00
Alexander Tkachev faa19c7bf0 CLOUD: Cleanup a little bit - remove unused config keys usage 2019-07-30 14:51:41 -04:00
Alexander Tkachev 2a56328d35 CLOUD: Update DropboxStorage to work with cloud.scummvm.org 2019-07-30 14:51:41 -04:00
Alexander Tkachev ddcfcc18b2 CLOUD: Update DropboxStorage to work via scummvm.org & StorageWizardDialog correspondingly 2019-07-30 14:51:41 -04:00
Cameron Cawley a2dcd6c4ff SYMBIAN: Remove unused class declarations 2019-07-27 12:37:39 +01:00
Cameron Cawley 8e8594aa0e SYMBIAN: Remove dead code 2019-07-27 07:23:09 +03:00
Cameron Cawley ecd89808c4 BACKENDS: Avoid redundant format changes on Dingux and LinuxMoto 2019-07-27 07:11:57 +03:00
Cameron Cawley a986dfd28a WINCE: Fix Makefile dependencies 2019-07-23 21:06:57 +01:00
Cameron Cawley 6d0adef20a PS2: Remove unused header 2019-07-23 22:27:52 +03:00
Cameron Cawley 357493082f ANDROID: Fix some Codacy warnings 2019-07-23 17:21:09 +01:00
Thierry Crozat bfa1f392f7 POSIX: Fix missing expansion of "~" to home when it has no suffix
This fixes bug #10941: Tilde in save path creates "~" folder
2019-07-14 22:11:20 +01:00
Filippos Karapetis d524d36a6a OPENGL: Specify a GLSL version tag, and rename reserved keywords
The GLSL version code has been taken from ResidualVM. The variable
'texture' is now a reserved keyword in GLSL 3.00, so it has been
renamed. This fixes compilation issues in AmigaOS4 (PR 1554).
2019-07-14 16:10:55 +03:00
Filippos Karapetis da15a38b66 BACKENDS: Initialize more TimerSlot fields when resetting it
This imports changes from commit 05f3fe420f
2019-07-14 15:12:07 +03:00
Matan Bareket 3cb90082ac GCW0: Redo bundle fix from 4b5ce0f 2019-07-11 08:58:34 -04:00
Matan Bareket a7ba9216b7 GCW0: Package the README.md file 2019-07-11 08:34:47 -04:00
Cameron Cawley 4b5ce0fb69 GCW0: Fix copy/paste error 2019-07-11 12:27:44 +01:00
Cameron Cawley 6e690c5a8b MAEMO: Minor cleanup 2019-07-08 11:11:45 -05:00
Cameron Cawley 0334411d63 BUILD: Package networking and virtual keyboard files on all platforms 2019-07-08 12:42:21 +03:00
Cameron Cawley 52e7ba5e54 SDL: Support joystick hat input 2019-07-08 01:24:55 +03:00
Cameron Cawley 30109816fe SDL: Initial implementation of joystick events 2019-07-08 01:24:55 +03:00
Orgad Shaneh 35c2f9ade5 BACKENDS: Fix crash when save file is owned by another user
fopen() fails, but the null handle was passed on to OutSaveFile.
2019-07-07 14:16:46 +03:00
Thierry Crozat d8cb826b19 IOS7: Add back mapping of LF character to the Return key
This is necessary for properly identifying the Return key pressed from
the software or a hardware keyboard, and this was erronously removed
in commit e5709ed.
2019-07-07 11:06:28 +01:00
Thierry Crozat cfd66173ba IOS7: Hide input accessory toolbar when an external keyboard is connected 2019-07-06 17:00:27 +01:00
Le Philousophe 418cec512f CRYOMNI3D: Add internationalization through external DAT file 2019-07-05 07:51:19 +02:00
Cameron Cawley eb1f9fb02d JANITORIAL: Remove outdated references to SourceForge.net 2019-07-02 21:07:54 +02:00
Thierry Crozat bf92167007 IOS7: Add a tab key to the keyboard accessory view 2019-06-30 12:36:43 +01:00
Thierry Crozat 25ff69c250 IOS7: Use scrollview for keyboard accessory view
This allows to have more buttons than what can be displayed on the
screen, and now to have all the same buttons on iPhone and on iPad.
2019-06-30 12:36:43 +01:00
Thierry Crozat ce9e776629 IOS7: Map three finger swipes to arrow keys
Also use the pinch gesture to show/hide the keyboard. Previously
it was using the three fingers swipe up and dowm, which is now
mapped to arrow keys.
2019-06-30 12:36:43 +01:00
Thierry Crozat 5232cf376b IOS7: Remove key mapping for function and return keys
Those keys are not present on the virtual keyboard accessory view.
This should fix bug #10314: LSL7: Unable to open Xqwsts's locker
on iOS.
2019-06-30 12:36:43 +01:00
Thierry Crozat 3ba9245138 IOS7: Add input accessory view to virtual keyboard
This adds buttons for some keys that are not present on the iOS
keyboard, such as the function and arrow keys, as well as a GMM
key.
2019-06-30 12:36:43 +01:00
Bastien Bouclet 0a8049e30c SDL: Fix gamepad mouse cursor wrapping on hi-res screens
The cursor position was overflowing a signed 16-bits integer once
multiplied with MULTIPLIER when using a resolution such as 2560x1440.

It would be nice changing this code to make more sense, sadly it is
thightly coupled with platform specific subclasses.

Fixes #10996.
2019-06-27 20:12:52 +02:00
Henrik "Henke37" Andersson 39f63f1236 WIN32: Make use of the window handle when calling ShellExecute. 2019-06-25 07:54:31 +03:00
Lothar Serra Mari 119bcc2b90 WIN32: Use HINSTANCE for OSystem_Win32::openUrl
This implementation now matches previous ShellExecute() calls, so we are
now consistent in that regard. It also
silences a warning in Mingw complaining about a type mismatch.
2019-06-24 17:00:20 +03:00
Cameron Cawley 16f8c024d1 OPENGLSDL: Move stretch mode handling into OpenGLGraphicsManager 2019-06-24 02:19:28 +03:00