293 Commits

Author SHA1 Message Date
Kaloyan Chehlarski
48a387832d ENGINES: Correctly store extended save playtime
Changed the extended saves code so time is stored in milliseconds
instead of seconds. This fixes an issue where loading a save would
pass a playtime value of 1/1000 of the real playtime to the engine,
resulting in total playtime effectively being zeroed every time a
save is loaded.
Existing savefile compatibility is ignored since the value stored
inside old saves would be wrong for any savefile that has been
saved over more than once.
2023-03-26 13:24:31 +03:00
macca8
746665db63 ENGINES: Update autosave time before adjusting interval
Correctly adjusts interval until next autosave attempt to 5 minutes, regardless of user’s selected autosave interval.
2023-03-16 15:10:12 +01:00
macca8
d507ce499f ENGINES: Allow warning dialog to delete existing save file
Presents the autosave with an empty autosave slot after a successful move, or when the Delete option is chosen.
Avoids potential renaming issues for engines which may not allow an existing save file to be renamed.
2023-03-05 23:19:40 +01:00
Miro Kropacek
06c9928f3a COMMON: gfx_mode is not always propagated 2023-03-04 23:38:42 +01:00
Vladimir Serbinenko
90f8c24265 ENGINES: Allow to specify several supported resolutions
This is useful in order to fallback resolutions even if supported
resolution is not known at compile time.
2023-02-28 01:58:13 +01:00
Cameron Cawley
138a983d80 COMMON: Refactor VSync handling to match the other options 2023-01-16 18:09:53 +01:00
elasota
5aeaa1015e ENGINES: Fix warning about passing a non-trivial class to va_start. 2022-11-26 23:09:24 +02:00
Eugene Sandulenko
57cd169a17 GUI: Allow both scalers and shaders to be enabled at the same time 2022-10-08 23:39:18 +02:00
Eugene Sandulenko
80f79f253d GUI: Make shaders/scalers work mutually exclusive 2022-10-08 23:39:18 +02:00
Cameron Cawley
79fff69231 COMMON: Use Common::String for OSystem::setShader 2022-10-08 23:39:18 +02:00
Cameron Cawley
64c359b5cb GUI: Replace the options for selecting shaders 2022-10-08 23:39:18 +02:00
Le Philousophe
6d60f91bc8 Revert "ENGINES: Don't pass U32String by value"
This reverts commit 30d8b64657f431efb13d98123170893e691952e0.
It fails on MSVC with error:
C2338    static_assert failed: 'va_start argument must not have reference type and must not be parenthesized'
2022-09-18 23:32:15 +02:00
Le Philousophe
0fbd85772d ENGINES: Initialize _metaEngine 2022-09-18 16:15:56 +02:00
Le Philousophe
30d8b64657 ENGINES: Don't pass U32String by value 2022-09-18 16:15:56 +02:00
SupSuper
af8e07b943 BACKENDS: Move isDataAndCDAudioReadFromSameCD() to AudioCDManager 2022-08-24 23:37:33 +03:00
Donovan Watteau
27f9a460b5 JANITORIAL: Fix "the the" and similar typos 2022-07-29 19:36:40 +03:00
athrxx
9b05c20699 COMMON: fix bug no. 13703 (KYRA: Legend of Kyrandia 3: Problem with autosave)
The warning message was only based on the description of the autosave file. And that description depended on the GUI language setting, since it is a string that gets translated.

Now we also query the _saveType that is set by the metaengine...
2022-07-16 01:08:51 +02:00
Cameron Cawley
60c7372198 OPENGL3D: Make use of the active rect provided by WindowedGraphicsManager 2022-06-18 19:33:27 +01:00
Thierry Crozat
b3e15d584e Engines: Properly initialize TTSManager for unsupported gamae dialogs
This fixes bug #11550: TTS: Language is wrong for unsupported game warning
2022-06-05 14:15:31 +01:00
Eugene Sandulenko
5e05f93f36
ALL: Remove Symbian port 2022-05-28 12:32:29 +02:00
athrxx
5cba8f9242 Revert "GUI: honor tts_enabled option in some more places"
This reverts commit 5969a2667a85b81a8b78b75fdf6d2d5364068155.
2022-04-26 21:08:41 +03:00
athrxx
5969a2667a GUI: honor tts_enabled option in some more places
(in particular when opening the GMM)
2022-04-10 19:00:35 +02:00
Orgad Shaneh
58cb82684d ENGINES: Fix re-autosave when the engine cannot save right now
_autosaveInterval is in seconds, but _lastAutosaveTime is in ms.

Reported by antoniou79.
2022-01-13 22:16:58 +02:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Orgad Shaneh
aa8cabd18f ENGINE: Suppress autosave overwrite warning when description is empty
Some engines (like kyra) return a SaveStateDescriptor with slot assigned,
even when the slot is free. The indication for an empty save is empty
description on these cases.
2021-11-24 09:07:03 +02:00
Torbjörn Andersson
513fffe950 SCUMM: Check for the appropriate audio tracks for indyzak and zakloom
The FM Towns demos use audio tracks, but neither have a track 1. This
caused ScummVM to warn that the audio tracks had not been properly
ripped from the CD.
2021-11-22 19:38:40 +02:00
Orgad Shaneh
b7413e9a42 ENGINES: Do not attempt autosave when the autosave slot is -1 2021-09-10 09:26:15 +03:00
Scott Percival
13a20e11e6 EVENTRECORDER: Disable autosave in record/playback mode 2021-09-09 19:32:02 +02:00
Thierry Crozat
ea4d2d55d2 ENGINES: Scale ScummVM spash on HiDPI screens 2021-09-08 22:22:23 +01:00
antoniou79
5f9b39e55b ENGINES: Fix autosave overwrite message
The message is formatted as U32String, and the argument is U32String so %S should be used.
2021-08-28 20:57:48 +03:00
Orgad Shaneh
6aeda12247 ENGINES: Warn when overwriting a non-autosave on autosave 2021-08-23 13:34:35 +02:00
Martin Gerhardy
60111294a0 BACKENDS: moved the audio cd track path assembly into one location
also added m4a audio cd support as it is supported in openStreamFile() which
is called in DefaultAudioCDManager::play()
2021-08-23 00:09:03 +03:00
Martin Gerhardy
dcaad26e86 ENGINES: keep existExtractedCDAudioFiles in sync with DefaultAudioCDManager::play()
out of sync since: f5164c911758e84804ef7d4e18c72cef21185daf
2021-08-23 00:09:03 +03:00
antoniou79
04642eef8a ENGINES: Replace checkCD with isolated partial methods
This is PR #3018 "rebased" on the current HEAD, after the conflicts with PR #3003 and me botching the rebase in that PR

Old PR is here: https://github.com/scummvm/scummvm/pull/3018
2021-07-27 20:51:57 +02:00
Cameron Cawley
74e7d777a9 BACKENDS: Add OSystem::messageBox() and use it for error handling 2021-07-27 20:50:51 +02:00
Thierry Crozat
73bb1e548b ENGINES: Ensure there is no recursive call to auto-save 2021-06-29 20:39:39 -07:00
sluicebox
d9df1919d5 WIN32: Make Win32AudioCDManager UNICODE compatible 2021-06-29 12:38:01 -05:00
sluicebox
863747bc96 WIN32: Use MAX_PATH (260) instead of MAXPATHLEN (256) 2021-06-29 12:38:01 -05:00
Cameron Cawley
b2d41daabc GUI: Add improved scaler selection to the Options dialog 2021-06-23 21:29:53 +02:00
Martin Gerhardy
9d82fa51df COMMON: removed USE_TTS check from engines
OSystem now just returns a nullptr if there is no text to speech manager instance
(because none is compiled into the binary, or the system doesn't provide support
for it). This removed the need for the engine authors to add scummvm osystem compile
time options checks into their engine code
2021-05-03 14:13:41 +03:00
antoniou79
669b9a0ffd ENGINES: Allow checkCD to run for all platforms
In order to prompt for CD versions missing the extracted audio files
2021-05-02 22:00:57 +03:00
Orgad Shaneh
94f0fe722f ENGINES: Remove redundant overload 2021-04-20 02:31:58 +02:00
Eugene Sandulenko
342f51b196
AD: Fix compilation 2021-04-16 14:42:55 +02:00
Eugene Sandulenko
ec2a50b746
AD: Implemented AGDF_WARNING flag 2021-04-16 14:20:13 +02:00
Eugene Sandulenko
5e7fe2dc57
JANITORIAL: Replace spaces in indentation with tabs 2021-04-15 21:20:36 +02:00
Cameron Cawley
a1890ede9c BASE: Avoid calling PluginMan.getEngineFromMetaEngine where possible 2021-04-05 15:33:23 +01:00
Paul Gilbert
ae4da8bce0 ENGINES: Make creation of savegame thumbnails an overrideable method 2021-03-07 09:34:33 -08:00
sluicebox
93eeffc84d JANITORIAL: Update old bug tracker numbers 2021-03-03 02:15:05 +02:00
Eugene Sandulenko
a8ad61ca58 ENGINES: Do not pass string by reference to errorUnsupportedGame()
This allows to use translated strings directly
2020-11-28 20:57:02 +01:00
Cameron Cawley
01b4432825 BACKENDS: Use Common::U32String for OSystem::setWindowCaption 2020-11-22 17:20:19 +00:00