Commit Graph

8007 Commits

Author SHA1 Message Date
Pawel Kolodziejski
c4b9f966b6 GRIM: Drop side textures feature from backend. 2020-10-05 19:09:58 +02:00
Pawel Kolodziejski
b05551ec2d BACKEND: Drop bpp param. it was used for grim only. 2020-10-05 14:41:36 +02:00
Pawel Kolodziejski
6abfc506fe BACKENDS: Remove isMouseLocked(). It was part of old events backend. 2020-10-05 14:31:44 +02:00
Pawel Kolodziejski
2ff565cf32 ANDROID: Rename Android folder as it's specific for ResidualVM 2020-10-05 12:35:32 +02:00
Pawel Kolodziejski
b321938c7b TINYGL: Restored ability to create internal buffer based on pixel format 2020-10-05 08:09:20 +02:00
Pawel Kolodziejski
4631c0e2ed ALL: Sync with ScummVM rev: a4002bdeee 2020-10-04 23:59:26 +02:00
Donovan Watteau
a1d930209a SDL: Prefer OpenGL over Metal rendering on macOS
SDL 2.0.10 and above favors Metal over OpenGL rendering on macOS, but
this currently causes blurriness issues on Retina displays.

Going back to OpenGL rendering works around this bug for now.

Users can override this with the SDL_RENDER_DRIVER environment variable.

c59bf95ba8 and 70f79d3df8 are still a requirement to
work around this bug, too.

Bug #11430.
2020-10-04 21:11:54 +01:00
antoniou
01c622b807 ANDROID: Add external app path if available to search path 2020-10-04 20:28:27 +03:00
Pawel Kolodziejski
ff0f619b1e ALL: Drop not updated file 2020-10-04 16:10:09 +02:00
Pawel Kolodziejski
0e8f2c96f3 EVENTS: Missed port change for relative mouse position 2020-10-04 08:08:23 +02:00
Pawel Kolodziejski
c12503a869 Synced with ScummVM rev: f6c5fed173 2020-10-03 18:14:12 +02:00
Pawel Kolodziejski
6120146fab BACKENDS: Fixed dynamic casting 2020-10-03 17:54:52 +02:00
Pawel Kolodziejski
e9839c31e2 BACKENDS: Drop native game joystick support in replacement for emulated from core events backend. 2020-10-03 17:13:54 +02:00
antoniou
5613c50fb3 ANDROID: Set AC_BACK to be the default map for Skip action
If Skip is not otherwise mapped by the game engine explicitly
2020-10-03 12:26:38 +03:00
Pawel Kolodziejski
fc0638a4db BACKENDS: Remove not used PS3 code 2020-10-02 20:02:15 +02:00
Pawel Kolodziejski
b1fcc7cb89 BACKENDS: Remove not used code 2020-10-02 20:01:17 +02:00
Pawel Kolodziejski
d8f2040dba ALL: Drop setupScreen API, use new initGraphics3d from engine API.
Enabled system API for begin/end gfx transactions, initSize, setGraphicsMode.
Function setGraphicsMode will use optional params to trigger 3d rendering
and switch to proper SDL Gfx manager.
2020-10-02 19:14:19 +02:00
antoniou
319149343f ANDROID: Reduce more Lint warnings
Unused resources, mem leak for event handler, overried View's performClick for accessibility
2020-10-02 19:50:30 +03:00
Pawel Kolodziejski
a38148e428 BACKENDS: Make unique change id on startup 2020-10-02 15:44:34 +02:00
Alexander Reim
c0062fe761 WII: Fix compilation with flag: disable-16bit 2020-10-02 15:00:57 +02:00
Pawel Kolodziejski
e88cb497ff BACKENDS: Fixed compilation under Xcode 2020-10-02 14:16:43 +02:00
antoniou
50eb038312 ANDROID: Comment about related bug report for transient config options 2020-10-02 12:42:06 +03:00
antoniou
50d2ae3b4c OPENGL: Use nearest neighbor scaling for overlay UI when filtering is disabled
User choice in launcher's Option, Graphics Tab detemines whether filtered graphics should be used

This now affects the ScummVM UI (it was previously set to not affect the UI overlay for OPENGL)
2020-10-02 12:38:46 +03:00
D G Turner
3c96f78ec5 KEYMAPPER: Fix GCC Compiler Warning for Signed vs Unsigned Comparison 2020-10-02 00:05:07 +01:00
Alexander Reim
1994249ef2 WII: Add support for WiiFilesystemNode::createDirectory() 2020-10-01 13:03:52 +02:00
antoniou
bf54ea041b ANDROID: Fix for buggy backspace behavior in TYPE_NULL inputType
Code taken from https://stackoverflow.com/a/19980975
2020-10-01 00:06:20 +03:00
antoniou
303d4681f0 ANDROID: Send keys to app as they are typed
Fixes issue with bad system keyboard input to in-game fields
2020-10-01 00:06:20 +03:00
antoniou
138295f617 ANDROID: Minor optimization in clause evaluation for bugfix for 2.2.1beta1 2020-09-30 20:56:39 +03:00
antoniou
7e08306c66 ANDROID: Fix bug in 2.2.1 beta ignoring some config locations
This is a bug fix specific for 2.2.1 beta1

If an old config is found in the extra locations, it will be reused and replace the existing config. Also in that case, the extra locations will be scanned for saved games to copy to our default save location.
2020-09-30 20:03:03 +03:00
Pawel Kolodziejski
6f69981904 BACKENDS: Drop launcherInitSize() and use 2d backend gfx manager for launcher. 2020-09-30 16:52:44 +02:00
antoniou
4ea7455e09 ANDROID: Splash screen and additional locations to search for config and saves
The splash screen is an addition that was "forced" by the need to allow for permission granted to access external physical storage
2020-09-29 22:10:56 +03:00
Pawel Kolodziejski
d0713f1072 BACKENDS: Fixed Android compilation 2020-09-29 17:00:04 +02:00
Pawel Kolodziejski
3e453e0240 BACKENDS: Attempt to fix Android compilation 2020-09-29 15:59:26 +02:00
Pawel Kolodziejski
6aa7cf6025 BACKENDS: Made code less different in SDL platform backend 2020-09-29 15:08:16 +02:00
Pawel Kolodziejski
a3a42ee306 ALL: Eliminated more differences with ScummVM 2020-09-29 11:54:05 +02:00
Pawel Kolodziejski
2b248a85bf ALL: Minimise differences with ScummVM 2020-09-29 07:57:40 +02:00
Pawel Kolodziejski
a8b53f8f21 ALL: Avoid class names clashing with ScummVM classes 2020-09-28 18:47:10 +02:00
antoniou
aa5a490bc7 ANDROID: Reduce Lint warnings 2020-09-28 17:55:04 +03:00
Pawel Kolodziejski
1221355b31 BACKEND: Cleanup GFX SDL backend after sync with ScummVM 2020-09-28 00:36:56 +02:00
Pawel Kolodziejski
5487e5e718 ALL: Sync with ScummVM rev: e08ba6ff14 2020-09-27 19:45:22 +02:00
Pawel Kolodziejski
823c075b0e ANDROID: Another attempt to fix compilation. 2020-09-27 17:15:12 +02:00
Pawel Kolodziejski
13331b623f ANDROID: Fixed compilation on Android. 2020-09-27 17:08:06 +02:00
Pawel Kolodziejski
01120c9203 BACKENDS: A little more change in layout for 3D GFX manager 2020-09-27 16:41:23 +02:00
Cameron Cawley
5cb84a437d SDL: Clip the coordinates sent by mouse events 2020-09-27 00:32:01 +01:00
antoniou
f6d1ab66b7 ANDROID: Add comments and code to reinforce hiding of system cursor
For the case when an external mouse is connected to the device

The code still only fixes the issue for devices runnng Android 7.0 or newer
2020-09-26 22:03:20 +03:00
Alexander Reim
92e37fd810 WII: File system access performance optimization
Games load up to 30 times faster. For example, the Zork games took up to 10 minutes to start. Now they load in under 20 seconds. Similar improvements can be seen in the massadd feature.
2020-09-26 17:54:50 +02:00
antoniou
8a87db94de KEYMAPPER: remap timeout (ms) can be set from config
Config key is "remap_timeout_delay_ms", min value is 3000
2020-09-26 17:00:57 +03:00
Pawel Kolodziejski
490bedb584 ALL: Fixed some compiler warnings while using c++11 2020-09-25 18:51:18 +02:00
Pawel Kolodziejski
5c311ac905 ALL: Cleanup after sync 2020-09-25 14:48:20 +02:00
Pawel Kolodziejski
3e13a02be9 BACKENNDS: Cleanup GFX backend 2020-09-25 14:23:30 +02:00
Pawel Kolodziejski
11b9f5d81c BACKENDS: More renames in GFX backends 2020-09-25 10:35:26 +02:00
Pawel Kolodziejski
677c072c3c BACKEND: Rename SDL gfx backends to be unique for ResidualVM 2020-09-24 20:22:49 +02:00
Alexander Reim
34534484b4 WII: Fix warnings 2020-09-24 11:45:40 +02:00
Alexander Reim
c4262682dc WII: Fix transparency of RGB cursors 2020-09-24 11:26:21 +02:00
antoniou
75826f80fc ANDROID: Comment out the logfile code
Since currently the logFile stuff are specific to SDL_BACKED
2020-09-24 10:14:02 +03:00
antoniou
c45dfd4a2f ANDROID: Migrate old save files
More testing pending
2020-09-24 01:50:45 +03:00
Pawel Kolodziejski
b7bcc287d6 IMAGE: Eliminate code difference by using flip operation from surface class. 2020-09-23 23:52:13 +02:00
Pawel Kolodziejski
ada0dd648c ANDROID: Attempt to fix Android compilation 2020-09-23 22:44:49 +02:00
Pawel Kolodziejski
bfe58d3c77 ALL: Synced with ScummVM - rev: d4db631f9b 2020-09-23 21:52:10 +02:00
Bastien Bouclet
fb39b94384 3DS: Start ScummVM in a separate thread
Allows to have a larger stack than that of the main thread.

Fixes #11717
2020-09-20 16:33:45 +02:00
antoniou
9e35ce0e52 ANDROID: Add internal app path to SearchSet
Also have it with higher priority than the Android's assets structure which is too slow

Fixes a bug whereby a large font.dat file was very slow to be accessed during launch (for the modern themes), due to it being accessed from the Assets rather than the file system
2020-09-18 15:12:16 +03:00
antoniou
34b6a89967 ANDROID: Remove unnecessary check for isFile in a sideUpgrade 2020-09-17 23:56:32 +03:00
antoniou
30b7c882e8 ANDROID: Copy asset files in internal app folder 2020-09-17 23:25:23 +03:00
Hubert Maier
962a9c6f07 AMIGAOS: Indented comments are now supported
Since when i don´t really know, might be for some time. I just tried with the scummvm-tools .mk and they work as intended.
Hope i don´t break anything else
2020-09-17 22:14:20 +02:00
antoniou
6906bba959 ANDROID: Revert chnage for long press AC_BACK handler
Huawei Android 9 seemed to not be working ok (or at all) with the change
2020-09-16 20:34:49 +03:00
antoniou
e751b30691 ANDROID: Upgrade to 2.3 version re-using any old configuration file 2020-09-16 15:25:53 +03:00
Bastien Bouclet
0155bb06af KEYMAPPER: Fix comparing mappings for equality
Fixes clearing default action mappings.
2020-09-15 22:42:34 +02:00
Bastien Bouclet
a977dfb2d1 KEYMAPPER: Enable the GUI keymaps while the virtual keyboard is visible 2020-09-15 22:42:34 +02:00
Bastien Bouclet
1c5f923083 PSP2: Simplify the filesystem code
The Vita SDK gained support for dirent at the end of 2017. There is no
need to have our own version anymore.

DrivesPOSIXFilesystemFactory allows to specify the contents of the
pseudo-root file system node. There is no need to hardcode them in
posix-fs.cpp anymore.
2020-09-15 07:13:00 +02:00
rsn8887
3a5690ebb4 KEYMAPPER: Fix virtual mouse bound in small rectangle in vkeybd 2020-09-14 20:58:37 -05:00
Cameron Cawley
31be074893 BACKENDS: Add a function to return if the overlay is visible 2020-09-15 00:09:11 +02:00
antoniou
30b8842885 ANDROID: Use custom handler for long key press detection
To avoid possible mem leaks (see "This Handler Class Should Be Static Or Leaks Might Occur” warning

Also a few optimizations based on recommendations from the Android Studio error highlighting/fix suggestions (F2)
2020-09-14 16:16:46 +03:00
antoniou
bd95672815 ANDROID: get version info (wip) and use androidx for annotations
Also androidx is replacing the Android Support library so it's best to use this one

According to https://developer.android.com/jetpack/androidx
AndroidX is a major improvement to the original Android Support Library, which is no longer maintained. androidx packages fully replace the Support Library by providing feature parity and new libraries.
AndroidX replaces the original support library APIs with packages in the androidx namespace. Only the package and Maven artifact names changed; class, method, and field names did not change.
2020-09-14 09:32:37 +03:00
Cameron Cawley
e918a4b16f OPENPANDORA: Fix copy/paste error 2020-09-13 22:20:31 +01:00
Eugene Sandulenko
6a66bffec8 GCW0: Disable GLK engine 2020-09-13 17:55:15 +02:00
Cameron Cawley
c8c120d839 GPH/OPENPANDORA: Minor cleanup 2020-09-13 14:58:45 +01:00
Thierry Crozat
53bb50c906 IOS7: Do not overwrite user saves when saving state 2020-09-13 00:21:36 +01:00
Thierry Crozat
c50ffd74c6 IOS7: Properly restore state when the process has been terminated 2020-09-13 00:21:36 +01:00
Thierry Crozat
63627dc26d IOS7: Save state as a background task when entering background
This is better than using an hardcoded delay for two main reasons.
The first one is that the application can terminate as soon as it
has finished saving the state, and the second one is that it will
still work if saving the state takes longer than the delay that
was hardcoded.
2020-09-13 00:21:35 +01:00
Thierry Crozat
28e9910666 IOS7: Implement game state save/restore when switching tasks
This only works if the running engines can save the game at the
time when ScummVM goes to the background.
This should partially fix bug #7871.
2020-09-13 00:21:35 +01:00
Thierry Crozat
7c812a52f1 IOS7: Call pauseEngine() when suspending the application 2020-09-13 00:21:35 +01:00
Pawel Kolodziejski
15a759370a ALL: Synced with ScummVM - rev: bdbbcd81ae 2020-09-12 19:38:50 +02:00
Pawel Kolodziejski
522d45c047 SDL: Added missed slow motion modifier 2020-09-12 19:06:01 +02:00
Thierry Crozat
bdbbcd81ae OSX: Fix taskbar update
This was broken sometimes between release 1.8.1 and 1.9.0. I did not
track the change that broke it, but it looks like the code was trying
to get the DockTile object too early causing it to be nil.
2020-09-12 18:01:15 +01:00
Pawel Kolodziejski
c4a605505e ANDROID: Fixed compilation 2020-09-12 15:16:46 +02:00
Cameron Cawley
02c09a8ed6 WIN32: Replace strToInt with wcstol 2020-09-12 11:59:23 +02:00
Cameron Cawley
da978f3a2f WIN32: Simplify string conversion 2020-09-12 11:59:23 +02:00
Fiodar Stryzhniou
80c29d1c94 Symbian: fix incorrect return type in SymbianActions::actionName().
Symbian: silence more warnings from SDK headers.
Symbian: add new project files.
2020-09-12 01:00:36 +02:00
SupSuper
b123a21eed BACKENDS: Add support for qualified game IDs in taskbar icons 2020-09-09 01:58:20 +01:00
Thierry Crozat
7e05309077 KEYMAPPER: Translate hardware input description
The strings were already marked for translation, but were not actually
translated.
2020-09-08 21:25:02 +01:00
Thierry Crozat
c5ede297ea JANITORIAL: Simplify some code that use U32String::format 2020-09-08 21:24:27 +01:00
BeWorld
0e4e606e36 MORPHOS : add kFeatureOpenUrl
Enable OpenURL
2020-09-07 19:10:16 +01:00
BeWorld
81fe49242a MORPHOS: Add OpenURL support
- add OpenURL support
- setupIcon doesnt working with SDL2 MorphOS
2020-09-07 19:10:05 +01:00
SupSuper
60b2c9164b BACKENDS: Use unique game ID for Discord presence
Append engine ID to ensure uniqueness
2020-09-05 20:43:07 +01:00
Pawel Kolodziejski
bc84ce2469 ANDROID: Fixed gfx method 2020-09-03 03:12:07 +02:00
Pawel Kolodziejski
03426360ef ANDROID: Sync events code 2020-09-03 03:07:17 +02:00
Pawel Kolodziejski
1884ccaa3a ANDROID: Try to sync Android backend 2020-09-03 02:50:39 +02:00
Pawel Kolodziejski
d5304e2568 ALL: Synced with ScummVM - rev: 33a47d23b8 2020-09-03 02:21:14 +02:00
Pawel Kolodziejski
acd114234f XCODE: Fixed creating project file 2020-09-02 08:25:41 +02:00
Cameron Cawley
c502fd2162 BACKENDS: Remove unused functions 2020-08-31 21:37:41 +01:00
Thierry Crozat
f3cfe11ee6 I18N: Consistency fix for SoundFont in messages 2020-08-31 16:35:56 +01:00
aryanrawlani28
807eb44c9a ENGINES: SCUMM: Fix compilation for DS backend
- The DS Backend has a different help screen, which was not updated with U32Strings.
- Add translations for the same.
2020-08-31 12:14:51 +02:00
Thierry Crozat
5f30b95452 MACOSX: Fix compilation with 10.4 SDK for real (hopefully) 2020-08-30 23:57:05 +01:00
aryanrawlani28
9edc2f0a0a BACKENDS: DS: Fix compilation error arisen due to extra U32 wrappers. 2020-08-30 21:45:29 +02:00
aryanrawlani28
2fdb7bb894 BACKENDS: PSP: Fix compilation due to incorrect type in TimedMessageDialog 2020-08-30 20:03:26 +01:00
Thierry Crozat
3fc952a999 MACOSX: Fix compilation with SDK 10.4 (hopefully) 2020-08-30 19:42:19 +01:00
Thierry Crozat
d158866505 BACKENDS: Fix discord presence compilation with U32String 2020-08-30 14:43:41 +02:00
aryanrawlani28
a089fe47e7 BACKENDS: Display messages on OSD takes in U32Strings for modular backend. 2020-08-30 14:43:41 +02:00
aryanrawlani28
984e7fae99 BACKENDS: DIALOGS: Remove redundant code for GTK Dialogs.
- Dialogs take in const gchar *, so no need to convert to char* and then pass it along.
2020-08-30 14:43:41 +02:00
aryanrawlani28
455a05b059 BACKENDS: SDL: Remove redundant code when set text in clipboard. 2020-08-30 14:43:41 +02:00
aryanrawlani28
4cef06d7a8 BACKENDS: WIN32: Use calloc to allocate memory for UTF8ToUnicode wrapper. 2020-08-30 14:43:41 +02:00
aryanrawlani28
c855f6259a GUI: U32: Fix incorrect code for redirecting constructors.
- The changes previously were creating a temporary object whose lifetime was limited to that line.
- Additionally, use Strings instead of const char* in MessageDialogs.
2020-08-30 14:43:41 +02:00
aryanrawlani28
29b6274e67 BACKENDS: CLIPBOARD: Improve usage for SDL & Android.
- Fix possible issue for setting text inside clipboard for SDL.
- Always return a decoded string when from UTF-8 in Android when fetch clipboard.
2020-08-30 14:43:41 +02:00
aryanrawlani28
d41d0e9b22 JANITORIAL: Fix formatting issues 2020-08-30 14:43:41 +02:00
aryanrawlani28
d4a280ef29 BACKENDS: DIALOGS: GTK: Fix incorrect memory usage & replace unsafe code.
- Encoding::convert which was previously used needed to be freed by the caller.
- With the direct conversion to utf8 by .encode(), this doesn't need to happen anymore
2020-08-30 14:43:41 +02:00
aryanrawlani28
dfc53b60e3 3DS: Use U32Strings for options dialog. 2020-08-30 14:43:41 +02:00
aryanrawlani28
f295d642a1 DS: Use U32Strings for Options dialog. 2020-08-30 14:43:41 +02:00
aryanrawlani28
ad20df4b27 SYMBIAN: Properly return U32String when get action name. 2020-08-30 14:43:41 +02:00
aryanrawlani28
6b7c646ba4 WII: Use U32Strings for options dialog. 2020-08-30 14:43:41 +02:00
Thierry Crozat
58d13fb863 IPHONE: Fix compilation 2020-08-30 14:43:41 +02:00
Thierry Crozat
e3c1fece97 IOS7: Fix compilation 2020-08-30 14:43:41 +02:00
aryanrawlani28
c87d0d6834 BACKENDS: NETWORKING: Remove unused toUtf8 helper
- All conversions are handled by Common:: helpers.
2020-08-30 14:43:41 +02:00
Thierry Crozat
1e8cb29a54 IOS7: Fix memory leak and compilation for copy to clipboard 2020-08-30 14:43:41 +02:00
Thierry Crozat
caa8a5d7bb MACOSX: Fix memory leak in copy to clipboard 2020-08-30 14:43:41 +02:00
aryanrawlani28
d48453693c GUI: U32: Use translated strings as arguments for formatting function usage. 2020-08-30 14:43:41 +02:00
aryanrawlani28
a647812bfb iOS: Use U32 for clipboards. 2020-08-30 14:43:41 +02:00
aryanrawlani28
3fc336300f 3DS: Use U32Strings for displaying OSD Messages 2020-08-30 14:43:41 +02:00
aryanrawlani28
3c79c2a519 GUI: U32: Fix incorrect format specifier for aspect ratio message. 2020-08-30 14:43:41 +02:00
aryanrawlani28
1950e38154 ANDROID: Support OSD Messages for U32. 2020-08-30 14:43:41 +02:00
Thierry Crozat
a54b5826ea UPDATES: Fix compilation with U32 strings 2020-08-30 14:43:41 +02:00
aryanrawlani28
a9c5e930f0 ANDROID: Make clipboards work with U32Strings. 2020-08-30 14:43:41 +02:00
aryanrawlani28
f0ad817716 SDL: Fix clipboard fetching internally
- This doesn't mean that it displays properly in the GUI, but it does return the proper value from getTextFromClipboard.
2020-08-30 14:43:41 +02:00
Thierry Crozat
733df0bfa1 MACOSX: Fix getting text from clipboard 2020-08-30 14:43:41 +02:00
aryanrawlani28
f9b05f5e5a BACKENDS: DIALOGS: MACOS: Improve readability and remove redundant code. 2020-08-30 14:43:41 +02:00
aryanrawlani28
0ca5a40d85 TTS: ALL: Improve u32-ity
- Allow the base class to take in a string with custom charset, convert to U32 and pass it along.
- Remove redudandant functions in all tts-subsystems
- Remove unnecessary "charset" argument, as U32Strings imply that we are using a UTF-32 charset
- Adjust relative code appropriately according to the above point.
2020-08-30 14:43:41 +02:00
aryanrawlani28
f95762881e GUI: U32: Use unicode strings for native Windows dialogs
These make use of newly added win-wrapper UTF8ToUnicode.
2020-08-30 14:43:41 +02:00
aryanrawlani28
93cb408c05 BACKENDS: WIN32: Add UTF8ToUnicode for Win32wrapper
- The new changes for converting GUI to U32 will need these.
- Provide missing notes for codepage params in other wrapper functions
2020-08-30 14:43:41 +02:00
aryanrawlani28
9bf3f73d8a GUI: U32: Use U32Strings for native dialogs
- Make DialogManager showFileBrowser take in u32
- Show filebrowser with u32 in MacOS and GTK
2020-08-30 14:43:41 +02:00
aryanrawlani28
56911beea2 GUI: U32: Add and use a U32Tokenizer
- Added in common/tokenizer.cpp
- Uses iterators to function
2020-08-30 14:43:41 +02:00
aryanrawlani28
68d01321d6 GUI: U32: Downscale changes of U32, fix review issues
This commit addresses a range of changes, within scummvm subproject.

- Audio files, like mididrv, remove U32String based name and identifier, because ASCII only.
- mididrv.cpp had some wrong format for warning messages, fix those
- Message dialogs were modified to use default arguments more often, but reverting back to the orignal to minimize changes.
- SetTooltip has a fake constructor that takes in a string, and use it.
- U32Format had some break statements missing, add those.
- RemapWidget: Use fake constructor for setLabel and setTooltip, to make minimal changes
- SDL: setting text in clipboard no longer uses SDL_iconv_string
- TTS: Override base class "say" with strings, so tts->say can be used with normal strings too.
- About dialog: fix incorrect code for u32string variables
- Fix some extra brackets
- Some buttons were incorrectly removed from using translated labels, revert those
- Message Dialog: Pass default and alt buttons as const references
- Saveload Dialog: Use translations in missing places, use const-references. Also, use translations in a correct manner.
- Use const references for tooltip in GraphicsWidget, EditTextWidget, error.cpp
- DomainEditTextWidget: Use U32String for text
2020-08-30 14:43:41 +02:00
aryanrawlani28
4b6976c558 GUI: U32: Reduce number of files changed and fixes
Up until last commit, everything was working fine but the amount of files changed was too large. This commit tries to reduce the changes.

- Add a fake constructor to Keymap, text-to-speech, setDescription (save-state)
- Redirecting functions for PopUpWidget::appendEntry, ButtonWidget::setLabel, GUIErrorMessage
- Use the above functions and constructors to reduce changes in Engines
- Fix warnings being in unicode. Only output english text in - Warnings, Errors, etc.
- Mark some strings as "translation" strings. (Not yet added to POTFILES)
- Remove some CP related things from po/modules.mk
- Previously used some Common::convertToU32 where it was not necessary, replace this with u32constructor
2020-08-30 14:43:41 +02:00
aryanrawlani28
bd19eaa5bf GUI: U32: More code improvements in engines and misc fixes
- Xeen's GUIError now takes in U32String
- Scumm's ValueDisplayDialog takes in U32
- Mohawk's InfoDialog & PauseDialog takes in U32
- Mohawk - in riven.cpp, Some assignment fixes
- Backends -in sdl.cpp, Remove incorrect conversion from iso8859 when setting text in clipboard
- Graphics - Add u32 strings instead of decoding each piece in format
2020-08-30 14:43:41 +02:00
aryanrawlani28
f46be5c766 GUI: U32: Improve splitting osd messages
Use iterators for construction instead of continous adding
2020-08-30 14:43:41 +02:00
aryanrawlani28
d12c6c4338 GUI: U32: Code cleanup
- Remove extra parantheses leftover from temp code
- SaveLoadDialog - do not encode when setting labels
- Remove mapping variable from ThemeEngine::loadScalableFont (and use default 0)
- Remove incorrect u32 constructor wrapper from confman.set in eventrecorder.cpp
2020-08-30 14:43:41 +02:00
aryanrawlani28
185fb72783 GUI: U32: Improve U32 code
- Revert accidentally put translations in mt32.cpp
- Use U32::format in some places earlier missed
- Add %u and %i for u32::format
- Add support for GUIErrorMsgFormat to use u32::format internally
- Use the above whereever needed
- Improve linux tts by removing redundant code
- Some places I had changed nullptr -> "". Revert this
2020-08-30 14:43:41 +02:00
aryanrawlani28
e91f968992 GUI: U32: encode and use c strings for translations in macos dialogs 2020-08-30 14:43:41 +02:00
aryanrawlani28
8cfa8a5589 GUI: U32: Use u32 for menu items in mac 2020-08-30 14:43:41 +02:00
aryanrawlani28
4bcac1df17 GUI: U32: Use u32 in clipboards for MacOS 2020-08-30 14:43:41 +02:00
aryanrawlani28
a9bfe35216 GUI: U32: More issue fixes and general improvements
- Use the fake constructor for message dialog less often
- solve errors regarding comparision between string and u32string in midi
- solve errors in testbed/speech related to ttsMan->say
- fix unsigned comparision warning in tab.cpp
- fix issue with static strings and translations in sdl-graphics
2020-08-30 14:43:41 +02:00
aryanrawlani28
da380a9002 GUI: U32: Fix issues with ustr formatting
- Fix one off error with 'pos'
- Fix last line not being inserted in osdMessage when display
2020-08-30 14:43:41 +02:00