4123 Commits

Author SHA1 Message Date
Orgad Shaneh
fe104cc337 ENGINES: Use MetaEngine consistently for getting autosave slot
The autosave refactoring that was done in
7adad5aaf5831dc5adcee140f38aacc4a5db2518 used g_engine for identifying the
autosave slot. This worked for in-game save/load, but doesn't fit when
called from the launcher.

Fix by passing MetaEngine to SaveStateDescriptor ctor and using it for this
query.

Amends 7adad5aaf5831dc5adcee140f38aacc4a5db2518.
2021-10-24 16:46:06 +02:00
Vanfanel
3a59c28179 SDL: Generalize VSYNC option so it works for 2D games too, in both SDL surface and opengl graphic modes. 2021-10-23 20:53:22 +01:00
Lothar Serra Mari
a4f8e4ae5c CREDITS: Update credits 2021-10-23 12:40:04 +02:00
sluicebox
44245eebbc GUI: Don't apply values from disabled subtitle toggle
When the subtitle toggle controls are disabled for a game, don't
read the value and then set config values based on it.
This caused "Override global audio settings" to always set "subtitles"
and "mute_speech" even when the controls were disabled.

Fixes bug #13007 where "Override global audio settings" always
mutes the speech clips in Hoyle4.
2021-10-15 13:25:34 -05:00
Cameron Cawley
121088b3ef GUI: Regenerate the theme archives 2021-10-12 23:30:32 +01:00
Cameron Cawley
d460f8f70a GUI: Avoid showing ellipses in smaller labels 2021-10-12 23:29:21 +01:00
Cameron Cawley
b444f53685 GUI: Specify the spacing for checkboxes and radio buttons in the theme files 2021-10-12 23:27:07 +01:00
antoniou79
56ef67f6d5 GUI: Prevent segfault for Options in GMM in-game 2021-10-12 15:43:10 +03:00
Cameron Cawley
c40b2bf125 GUI: Disable widgets in the options dialog relating to unavailable features 2021-10-10 22:40:55 +03:00
Mataniko
c969644d7f CREDITS: Update credits 2021-10-07 07:59:30 -04:00
Thierry Crozat
ae46396a3d GUI: Remove unused localized bdf fonts 2021-10-02 23:50:21 +01:00
Thierry Crozat
f3829243a1 GRAPHICS: Remove obsolete genLocalizedFontFilename FontManager
This function supported loading alternative bdf fonts when we were
using 8 bits encodings for the translations. Now that we are using
unicode for all language, this is no longer needed.
2021-10-02 23:50:21 +01:00
Thierry Crozat
6043a4e40c GUI: Remove query of charset in ThemeEngine
This was only used to be part of the name under which loaded TTF
fonts are stored in the FontMan font map. But since all the
languages now use the same charset (UTF-32), there is no longuer
a need to include the charset in the name. We still need to
differentiate between bdf fonts that can only be used for English
and TTF fonts, but this is is the case due to the font size being
included in the name. And otherwise we could just add a hardcoded
"-ttf" in the name.
2021-10-02 23:50:21 +01:00
Thierry Crozat
ebd8915009 GUI: Simplify builtin language check 2021-10-02 23:50:21 +01:00
Thierry Crozat
5e3b44f19d GUI: Cleanup Theme loading language error check
We used to have different charsets depending on the language and
a different set of fonts for each one. So themes could support
some language and not others depending on the fonts it contained.
Now all languages are using UTF-32, except English. So the only
case that can fail is when not using English and the Theme does
not have TTF fonts.
2021-10-02 23:50:21 +01:00
Paweł Kołodziejski
738e400f43
GUI: Ported ResidualVM theme into remastered 2021-10-01 15:04:32 +02:00
Cameron Cawley
576ac2e9d3 GUI: Update the builtin theme 2021-09-30 16:57:58 +01:00
djsrv
4667ffea96 CREDITS: Update name 2021-09-23 11:48:05 -04:00
Cameron Cawley
2f99746d8d ENGINES: Allow implementing registerDefaultSettings in the MetaEngine class 2021-09-18 11:57:29 +02:00
Scott Percival
666f241d29 EVENTRECORDER: Remove backwards compatibility 2021-09-09 19:32:02 +02:00
Scott Percival
1040bd2862 EVENTRECORDER: Fixes based on feedback 2021-09-09 19:32:02 +02:00
Scott Percival
29d6758c0d EVENTRECORDER: Add update mode
This new mode is functionally identical to playback mode, however
a new recording file is used to track the actual output of ScummVM.
This feature can be used to update a suite of existing recordings after
a renderer or a timing change.
2021-09-09 19:32:02 +02:00
Scott Percival
84707ec828 EVENTRECORDER: Prevent recursive call to warpMouse 2021-09-09 19:32:02 +02:00
Scott Percival
0112fab176 EVENTRECORDER: Filter GUI redraws from the logs 2021-09-09 19:32:02 +02:00
Scott Percival
13a20e11e6 EVENTRECORDER: Disable autosave in record/playback mode 2021-09-09 19:32:02 +02:00
Scott Percival
5cbcd98963 EVENTRECORDER: Add screen update tracking
Screen update boundaries are now used as sync points.
Screenshots are now processed on a screen update boundary.

This change increments the version of the Event Recorder
file format to 2; version 1 files will still play back as
before, without synchronising to screen updates.
2021-09-09 19:32:02 +02:00
Scott Percival
c29a62b05d EVENTRECORDER: Ignore hash check for targets with no MD5 records
This is required for Director to allow testing arbitrary files that
aren't part a game, e.g. Lingo Dictionary.
2021-09-09 19:32:02 +02:00
Martin Gerhardy
b1deb8afba GUI: added float var support to the debugger 2021-09-07 01:33:04 +03:00
Lothar Serra Mari
7b0ce6282f GUI: Add GUI option for Discord RPC 2021-09-02 14:21:07 +02:00
Martin Gerhardy
4b13314e23 GUI: persist the debug console history 2021-09-01 16:30:02 +02:00
Eugene Sandulenko
b85daf6066
GUI: Added optional file mask for FileBrowserDialog 2021-09-01 15:38:30 +02:00
Cameron Cawley
0d65c120b7 CREDITS: Add myself to the DS port credits 2021-08-30 19:11:03 +01:00
Orgad Shaneh
b7a46e97f5 GUI: Re-enable warning when saving over an older savegame
The assignment back to _saveList is required, because the initial read does
not assign playtime.

In case the slot is empty, querySaveMetaInfos returns an empty description
with saveSlot -1 on most engines, so _saveList[selItem] loses its slot.
Cover this by adding a check.

Reverts 0425dff8245fd07329753a1f9c9cf91b4e79c534.
2021-08-28 21:36:35 +03:00
Lothar Serra Mari
46886b787e I18N: Update translations data file 2021-08-28 16:54:15 +02:00
D G Turner
8b239a2577 GUI: Fix GCC Signed vs. Unsigned Comparison Warning 2021-08-28 13:56:09 +01:00
Thierry Crozat
18ee050adf GUI: Only display autosave warning if there are normal saves in autosave slots
This fixes bug #12845.
2021-08-28 13:48:53 +01:00
Thierry Crozat
0425dff824 GUI: Fix saving in a new slot with the list save dialog
This revert part of a17816f1 (GUI: Warn when saving a "young" game
over an "older" one).

The issue was that when trying to save in a new slot with the list
save dialog, this was not creating the save.

This finishes to fix bug #12850
2021-08-27 23:30:44 +01:00
Thierry Crozat
626d0ed4b6 GUI: Fix assert when double clicking on item in list save dialog
This was a regression from 44e5d3f9 (GUI: Factor out save/load
activation to a function).

This fixes part of bug #12850
2021-08-27 23:30:44 +01:00
Thierry Crozat
5867d5420f GUI: Fix clicking in an empty space in the Grid Load dialog
This was unexpectedly closing the dialog.
This was a regression from 44e5d3f9 (GUI: Factor out save/load
activation to a function)
2021-08-27 23:30:44 +01:00
D G Turner
50548c738d GUI: Fix Incorrect Logic due to Stray Semicolon 2021-08-26 22:56:25 +01:00
Thierry Crozat
8d4ef7234d GUI: Avoid crash when starting ScummVM with partially corrupted config file
In my case I had a section where only the gameid was defined and no path.
Obviously this is not valid and I cannot start that game. But this is not
a reason to crash with an unknown "path" key error when starting ScummVM.
2021-08-26 17:12:55 +01:00
Orgad Shaneh
a17816f14d GUI: Warn when saving a "young" game over an "older" one 2021-08-25 05:56:22 +03:00
Orgad Shaneh
44e5d3f9bd GUI: Factor out save/load activation to a function 2021-08-25 05:56:22 +03:00
Orgad Shaneh
873ba580fb GUI: Warn when enabling autosave on options
...if non-autosave games are stored in autosave slot
2021-08-24 01:37:06 +02:00
SupSuper
c9d67e48a9 BACKENDS: Use FSNode::getName in string operations 2021-08-23 21:22:27 +01:00
Cameron Cawley
6edcd3c21c GUI: Fix displaying dynamic engine options widgets in the Edit Game dialog 2021-08-23 00:07:11 +03:00
Cameron Cawley
644e7354f5 CREDITS: Update credits 2021-08-22 22:25:33 +03:00
Cameron Cawley
e8c54ed7aa DS: Work around issues with GUI scaling at low resolutions 2021-08-20 17:43:19 +01:00
Eugene Sandulenko
5af243be2c
I18N: Reduced width of some language names so they fit better on low res. Bug #11745 2021-08-19 17:05:25 +02:00
Thierry Crozat
e012014c29 GUI: Fix computation of MessageDialog width
This was a regression introduced in fea19c69a. The code forgot to
add the margin on either side of the text when computing the width
of the dialog.

I also introduced a variable with the mergin value to clarify the
code (and also make it easy to change that margin in the future if
we want to).
2021-08-18 22:38:55 +01:00