Commit Graph
8933 Commits
Author SHA1 Message Date
Jaromir Wysoglad 3cb57e2078 WIN32: Delete obsolete comment in convertEncoding. 2019-08-24 18:12:45 +03:00
Jaromir Wysoglad 6e72cd2c08 WIN32: Handle endianity in convertEncoding 2019-08-24 18:12:45 +03:00
Jaromir Wysoglad e0f2a3460a WIN32: Move getCodePageId to codepage.h 2019-08-24 18:12:45 +03:00
Jaromir Wysoglad 04b28b208d WIN32: Fix infinite loop when converting from utf32
Because of how cyrilic transliteration and UTF-32 is handled on
Windows, it was unfortunately possible to get into an infinite
loop of conversions. The string would get converted to UTF-32
when transliterating, but because windows backend conversion
cannot convert from UTF-32, it would use Common::Ustr to convert
it to UTF-8, which would again get converted to UTF-32 when
transliterating and so on.
2019-08-24 18:12:45 +03:00
Jaromir Wysoglad 6dba0bbfd4 SDL: Remove check for SDL2 in convertEncoding()
SDL_iconv_string() is available even with SDL1
2019-08-24 18:12:45 +03:00
Jaromir Wysoglad 96270d4bf2 JANITORIAL: Remove debuging code. 2019-08-24 18:12:45 +03:00
Jaromir Wysoglad 4edf35e414 WIN32: Fix conversion of multibyte encodings. 2019-08-24 18:12:45 +03:00
Jaromir Wysoglad 41d3a70c58 SDL: Fix convertEncoding for multibyte encodings. 2019-08-24 18:12:45 +03:00
Jaromir Wysoglad 3e4b5c7d3b WIN32: Resolve endianity in convertEncoding() 2019-08-24 18:12:45 +03:00
Jaromir Wysoglad 93c6b2fafc WIN32: Implement conversion to and from UTF-32
UTF-32 is used in transliteration in Common::Encoding, so it is
pretty important encoding and Windows should be the only thing,
that cannot convert it.
2019-08-24 18:12:45 +03:00
Jaromir Wysoglad e01f0af5b0 WIN32: Check calloc return value in covertEncoding 2019-08-24 18:12:45 +03:00
Jaromir Wysoglad 8c284c0917 WIN32: Add Win32 implementation of convertEncoding 2019-08-24 18:12:45 +03:00
Jaromir Wysoglad 0db194eed4 WIN32: Add include guard to codepage.h 2019-08-24 18:12:45 +03:00
Jaromir Wysoglad 807c55e800 WIN32: Add a way to convert codepage name to cp ID 2019-08-24 18:12:45 +03:00
Jaromir Wysoglad d6d6ac1823 SDL: Add SDL implementation of convertEncoding 2019-08-24 18:12:45 +03:00
Cameron Cawley 8b4c3ea302 ANDROID: Use a better icon for the on screen control
Modified from https://www.iconfinder.com/icons/352464/keyboard_icon, which is available under the Creative Commons (Attribution-Share Alike 3.0 Unported) license.
2019-08-20 14:32:50 +03:00
Cameron Cawley 12c232eefc ANDROID: Add a button to show the virtual keyboard 2019-08-20 14:32:50 +03:00
rsn8887 f14a7f15d5 SWITCH: Force fullscreen always on
Windowed mode never worked correctly and is pointless since the
Switch operating system doesn't have a window manager.
2019-08-18 17:03:51 -05:00
Cameron Cawley 475eafc6c6 ANDROID: Don't deinitialize the EGL surface when pausing the application
Fixes Trac#6129
2019-08-18 22:48:08 +01:00
rsn8887 073d833283 PSP2: Force fullscreen always on
Windowed mode never worked correctly and is pointless since Vita
operating system doesn't have a window manager.
2019-08-18 15:14:20 -05:00
Cameron Cawley ea9e33bd10 GUI: Check if fullscreen is available at runtime 2019-08-18 06:21:28 +03:00
D G Turner 54c465ef17 BACKENDS: Fix GCC Warnings in Surface SDL Graphics
This removes the usage of memset to clear complex structures and replaces
them with constructor methods for the structures which will be executed
when these are instantiated.
2019-08-15 16:26:53 +01:00
Cameron Cawley 1feb86ee97 BACKENDS: Handle screen shaking in WindowedGraphicsManager 2019-08-15 02:01:21 +03:00
rsn8887 afd360703e VITA: Use activeArea rectangle also on Vita 2019-08-13 20:54:59 -05:00
rsn8887 5b32f377a9 BACKENDS: add Fit to window (4:3) stretch mode to SDL2 backend 2019-08-13 20:42:56 -05:00
Cameron Cawley ba2bc60043 BACKENDS: Use the default save file manager on Switch and SamsungTV 2019-08-12 10:39:43 +03:00
Cameron Cawley 7311252d8a POSIX: Remove POSIX-specific checkPath function 2019-08-12 10:39:43 +03:00
Cameron Cawley aca627bec7 COMMON: Implement FSNode::createDirectoryRecursive() 2019-08-11 22:15:54 +03:00
Cameron Cawley 04c57babbc BACKENDS: Create the default save directory if it doesn't exist 2019-08-11 22:15:54 +03:00
Cameron Cawley 30234728d6 SDL: Removed invalid override from getGraphicsScalerProc() 2019-08-11 12:42:56 +01:00
Cameron Cawley 9b6461122e SDL: Move selecting the required ScalerProc into a separate function 2019-08-11 14:27:52 +03:00
Cameron Cawley db445bfc87 BACKENDS: Improve AbstractFSNode::createDirectory() stubs 2019-08-06 07:17:29 +03:00
Cameron Cawley 66ef50cfeb BACKENDS: Rename and simplify AbstractFSNode::create() 2019-08-06 07:17:29 +03:00
Cameron Cawley 8b8fb6d3a4 SDL: Simplify implementation of createLogFile() 2019-08-05 10:01:30 +03:00
Thierry Crozat fa9651d1bb IOS7: Make sure openURL is executed on the main thread 2019-08-04 20:40:22 +01:00
Thierry Crozat 468c0f0743 IOS7: Implement isConnectionLimited 2019-08-04 19:03:34 +01:00
Thierry Crozat cd7bf2b09f IOS7: Implement getSystemLanguage 2019-08-04 19:03:34 +01:00
Thierry Crozat 160070347f IOS7: Move non-video related functions to a separate file 2019-08-04 19:03:34 +01:00
Thierry Crozat c505a7b4bb IOS7: Implement opening a URL 2019-08-04 19:03:34 +01:00
Thierry Crozat 0ddcb9de7b IOS7: Implement copy to clipboard and paste from clipboard 2019-08-04 19:03:34 +01:00
Cameron Cawley d765440c1a OPENGL: Support RGBA8888 swapped textures when using OpenGL ES 2019-08-04 18:46:30 +01:00
Alexander Tkachev 1c0b697a59 CLOUD: Fix OneDriveTokenRefresher
If user doesn't have a "saves" folder, listing it as a first step of
syncing save files would result in 404 from OneDrive.
OneDriveTokenRefresher handles token-related errors (401), so when it
meets 404, it calls its finishError method. But because there was some
strange behaviour from OneDrive with sending invalid JSON, this method
tries fixing JSON and parsing it again. If it is valid, it calls
non-error method again, and in result we get stack overflow.

In order to fix that, I've added a non-JSON prefix "<irrecoverable>", so
finishError won't be able to parse JSON and thus won't call finishJson
again. Saves syncing callback does check string contents apart from
trying to parse JSON, so it still works and correctly handles the
situation when "saves" directory is missing. But, if needed, code can be
updated to search for the prefix I've added and remove it before parsing
original JSON.
2019-08-04 04:36:59 +07:00
D G Turner 466b162996 CLOUD: Fix GCC Compilation Warning in Debug Code.
The warning emitted here was due to debug() call with an empty format
string, so this could have been fixed by replacing this with "%s", "".

However, this change should be better since it avoids the duplication
of the number of file check over several lines and reduces the string
duplication i.e. DRY improvements.
2019-08-03 14:52:57 +01:00
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