89705 Commits

Author SHA1 Message Date
Thierry Crozat
591ddf5b0b I18N: Update translations templates 2019-07-30 22:43:57 +02:00
Thierry Crozat
3e13bba28f GUI: Fix translation context for Cloud and LAN tabs 2019-07-30 21:43:08 +01:00
Thierry Crozat
74882eee54 I18N: Update translation (French)
Currently translated at 98.2% (1063 of 1083 strings)
2019-07-30 21:53:54 +02:00
Lothar Serra Mari
7ba0c446b5 I18N: Update translation (German)
Currently translated at 100.0% (1083 of 1083 strings)
2019-07-30 21:53:48 +02:00
Thierry Crozat
4b3e13e4bd I18N: Update translations templates 2019-07-30 21:42:06 +02:00
Lothar Serra Mari
0a1b8d8149 I18N: Remove obsolete POTFILES entry for storagewizarddialog.cpp 2019-07-30 21:41:28 +02:00
Niv Baehr
0377045f0e QUEEN: Skip talk on right click 2019-07-30 22:25:14 +03:00
Alexander Tkachev
cffd6d79ab GUI: Fix a label in Cloud tab 2019-07-30 14:51:41 -04: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
7fc6477ce2 COMMON: Update getHumanReadableBytes() in util.h
Function now casts bytes (as <1024) to unsigned long int to correspond
"%lu" format string. For consistency, KB are now printed as floating
number. Finally, it looks like double is pretty precise to be used in
comparisons, so I made the function a little bit shorter.
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
f7902583bc GUI: Change 'Wi-Fi Sharing' tab name to 'LAN' 2019-07-30 14:51:41 -04:00
Alexander Tkachev
e4da63823a GUI: Add feature description into Wi-Fi Sharing tab 2019-07-30 14:51:41 -04:00
Alexander Tkachev
a9d47a163e GUI: Fix Cloud tab scrolling problem
GlobalOptionsDialog is now also a CommandSender, so it could send
command "scroll to the top" when storage is disconnected in Cloud tab
(layout updates, that's why scrolling is needed).
2019-07-30 14:51:41 -04:00
Alexander Tkachev
a1b847a1ef GUI: Make Cloud tab wizard input box cleanup value
Now input box does not remember old code you've put in it if you changed
selected storage or disconnected one.
2019-07-30 14:51:41 -04:00
Alexander Tkachev
28c93ed027 GUI: Fix Cloud tab wizard elements displaying after connecting storage
Elements were displayed until scrollbar was used, now they are hidden
right after storage is connected.
2019-07-30 14:51:41 -04:00
Alexander Tkachev
3df126853a GUI: Separate Cloud tab in two
All local webserver-related settings are now shown in a separate, "Wi-Fi
Sharing" tab (shown if built with USE_SDL_NET). Cloud tab is only shown
if actual cloud storages are built (USE_LIBCURL).
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
d04c1dfad4 COMMON: Add getHumanReadableBytes() in util.h
This function was used in cloud-related DownloadDialog before,
and now it is also used in Options > Cloud tab.
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
16b6588146 CLOUD: Update Dropbox and Google Drive icons in themes 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
Alexander Tkachev
1bebaf96f7 CLOUD: Regenerate wwwroot archive to include graphic resources 2019-07-30 14:51:41 -04:00
Torbjörn Andersson
f1e79aae73 GLK: Pass picNum to format() for the pic%d.rect case as well. 2019-07-30 16:56:37 +02:00
Paul Gilbert
041132f5f6 GLK: Fix illegal characters in detection entries 2019-07-29 22:10:06 -07:00
Paul Gilbert
97d4a60cfb GLK: Implemented debugger dumppic command 2019-07-29 22:05:19 -07:00
Paul Gilbert
a04bdb3d7c GLK: Added skeleton debugger 2019-07-29 22:05:19 -07:00
Thanasis Antoniou
fc6f9c9adb BLADERUNNER: Fix AmigaOS compilation (attempt 2) 2019-07-29 15:31:46 +03:00
Thanasis Antoniou
b939168b61 BLADERUNNER: Fix compile for AmigaOS 2019-07-29 15:09:42 +03:00
Thanasis Antoniou
c8a23cc401 BLADERUNNER: Fix unsorted args for getRandomNumberRng
Fix for bug #11034
2019-07-29 13:57:56 +03:00
Thierry Crozat
70126b9685 I18N: Update translations templates 2019-07-29 12:00:29 +02:00
Thierry Crozat
70b507b3de I18N: Regenerate translations data file 2019-07-29 12:00:23 +02:00
Thanasis Antoniou
5b3c577b84 BLADERUNNER: Remove buzz at transition PS11 to PS10 2019-07-29 11:21:43 +03:00
Thanasis Antoniou
52c03a2a59 BLADERUNNER: Fix Izo getting stuck in RC03
Bug case was for when he runs away (Steele is blocked)
2019-07-29 11:02:47 +03:00
Paul Gilbert
6e7f584353 XEEN: Change English detection entries from testing to stable 2019-07-28 22:15:21 -07:00
Thanasis Antoniou
0682938bc3 README: Small corrections in the Blade Runner notes section 2019-07-29 08:05:13 +03:00