Commit Graph
477 Commits
Author SHA1 Message Date
Cameron Cawley 138a983d80 COMMON: Refactor VSync handling to match the other options 2023-01-16 18:09:53 +01:00
Vladimir Serbinenko b91d873df6 SDL: Support auto-detection of GUI resolution. 2023-01-12 10:27:20 +03:00
elasota 3a07524b73 COMMON: Add initial config file option.
This allows an initial/default configuration file to be specified via the command line.  This allows a default settings file to be bundled and loaded even if it's installed to a read-only location, such as Program Files on Windows, and allows the written config file to be deleted without losing the custom defaults.
2023-01-11 14:46:39 +01:00
Eugene Sandulenko 399285b76b BASE: Added support for autorun file.
Place file named 'scummvm=autorun' next to the ScummVM.

If the file is empty, scummvm will run in autodetect mode, basically
as './scummvm -p . --auto-detect'.

If the file is not empty, then command line parameters will be read
from it one per line. Empty lines and lines starting from '#' are ignored.

If the user supplies more parameters at the command line, those
will also be used and will override the parameters from the autorun file.
2023-01-04 00:46:49 +01:00
Eugene Sandulenko 6cb1c7df81 BASE: Implement autorun mode with executable name
Rename scummvm executable into 'scummvm-auto*' and it is equivalent
of 'scummvm -p . --auto-run'. All additional arguments on the command
line are also processed and override the automatic arguments.
2023-01-04 00:02:02 +01:00
Cameron Cawley 2c8a7d3900 ENGINES: Remove support for GUI options in MetaEngineDetection subclasses 2022-11-16 23:58:54 +01: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
Cameron Cawley f3b094e53f ENGINES: Change the MetaEngineDetection interface to match MetaEngine 2022-07-23 23:31:58 +02:00
grisenti 7b53202a9e ALL: add support for --config and refactor code 2022-05-29 13:56:21 +02:00
grisenti a7ed28e8a7 ALL: add support for --gui-theme and update themes 2022-05-29 13:56:21 +02:00
athrxx 5cba8f9242 Revert "GUI: honor tts_enabled option in some more places"
This reverts commit 5969a2667a.
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
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Orgad Shaneh e92e232788 BASE: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
av-dx 7d1c3af603 GUI: Split the LauncherDialog into two classes create a chooser object 2021-11-12 14:46:34 +01:00
Eugene Sandulenko 927b9af1c9 BASE: Set debug flags before instantiating an engine 2021-09-26 13:43:23 +02:00
Cameron Cawley 2f99746d8d ENGINES: Allow implementing registerDefaultSettings in the MetaEngine class 2021-09-18 11:57:29 +02:00
Lothar Serra Mari 74d4380781 BASE: Don't check for config key presence when loading gfx mode 2021-09-18 04:23:19 -05: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 bd7b605552 EVENTRECORDER: Allow --record-file-name for record mode 2021-09-09 19:32:02 +02:00
sluicebox 386c5659ec BASE: Purge keyboard/mouse events before running Engine
Fixes GUI events leaking into engines at startup. This caused
Phantasmagoria 1 to skip its introduction if the game was started from
the ScummVM GUI with a keyboard (Enter) but not with a mouse because
the key-down event started the engine and the key-up event remained
in the queue.

This also purges and mouse events since we happen to already have a
purgeMouseEvents() method. We may want to also clear joystick inputs,
or possibly the entire event queue, but that can be done after the
upcoming release. For now, the known bug is fixed.
2021-08-23 15:46:33 -05:00
Eugene Sandulenko fef26b3c59 BASE: Capture all global debug channels as early as possible 2021-08-16 21:28:26 +02:00
Cameron Cawley b2d41daabc GUI: Add improved scaler selection to the Options dialog 2021-06-23 21:29:53 +02:00
sluicebox f2f28c4549 COMMON: Rename DebugManager methods, update comments 2021-06-14 12:42:38 -05:00
sluicebox efd4f9ff9d COMMON: Remove DebugManager::debugFlagsClear() 2021-06-14 12:42:38 -05:00
sluicebox 8e1d90f8e4 ALL: Remove clearAllDebugChannels() from Engine dtors 2021-06-14 12:42:38 -05:00
sluicebox 77cfab947a BASE: Fix debug levels parameter name 2021-06-10 10:47:42 -06:00
ysj1173886760 d3b596d820 BASE: Register debug channels before calling the findGame() in main.cpp 2021-05-22 01:34:57 +02:00
ysj1173886760 1c333f66e2 BASE: change the method name to adapt for new api 2021-05-22 01:34:57 +02:00
ysj1173886760 a6542f242e BASE: move setting debug flags to debug manager, set debug flags before call detectGames 2021-05-22 01:34:57 +02:00
ysj1173886760 f07ceca9cb BASE: add global debug flag 2021-05-22 01:34:57 +02:00
ysj1173886760 061fd12966 BASE: register debug channel before instantiate the engine in main 2021-05-22 01:34:57 +02:00
Le Philousophe 610fdfade8 BASE: Unload plugins when exiting after processing arguments
When not displaying the GUI, plugins are not unloaded.
This can cause problems on AmigaOS where plugins must be unloaded before
exiting. Else, some plugins with global destructors cause crashes being
destroyed too late.
2021-05-15 12:50:52 +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
Eugene Sandulenko 06794e48c6 BASE: Implemented --window-size command line option 2021-04-21 00:57:31 +02:00
Cameron Cawley f88769f132 BASE: Fix a crash when attempting to run a disabled engine 2021-04-08 12:18:11 +03:00
Cameron Cawley 3e8ab22eb2 BASE: Don't attempt to unload detection code when building with static detection 2021-04-07 14:38:51 +02:00
Cameron Cawley a1890ede9c BASE: Avoid calling PluginMan.getEngineFromMetaEngine where possible 2021-04-05 15:33:23 +01:00
Thierry Crozat 67720ef658 JANITORIAL: Remove obselete references to MetaEngineConnect
At some point when splitting the MetaEngine to a detection
plugin and a static meta engine, the former was called
MetaEngine while the latter was called MetaEngineConnect.
Thus was then later change to MetaEngineDetection and
MetaEngine. But some references were left to the former
names in comments and documentation.
2021-02-14 14:32:36 +00:00
av-dx 7950a9b215 GUI: Refresh stretch mode and shader on returning to launcher 2021-01-24 04:09:09 +02:00
Thierry Crozat a1c807704d ALL: Ignore force RTL option when the engine does not support RTL
This fixes bug #12072: Cannot quit Blazing Dragons when always
return to launcher is selected
2021-01-20 23:35:47 +00:00
Vladimir Serbinenko 0d39e96f55 COMMON: Make TranslationManager reusable.
This makes it possible to reuse TranslationManager with different
files.
2020-12-17 09:49:18 +01:00
Thierry Crozat 4518f73f92 BASE: Remove FORCE_RETURN_TO_LAUNCHER define
This was only used by the ps2 backend, and that backend no longer
exists. Also now backends that want to force RTL should use the
kFeatureNoQuit OSystem feature instead.
2020-12-09 22:13:22 +00:00
Thierry Crozat 9e5540f838 BASE: Handle RTL at exit config in scummvm_main
This config was handled in the DefaultEventManager, but this did not
work for engines that quit the game without using a QUIT_EVENT (such
as SCI). So now it is handled one level up directly in scummvm_main.

Note: It is still also handled in the DefaultEventManager so that we
get the correct confirmation dialog there when "confirm_exit" is true.
2020-12-09 22:13:22 +00:00
Cameron Cawley 01b4432825 BACKENDS: Use Common::U32String for OSystem::setWindowCaption 2020-11-22 17:20:19 +00:00
Cameron Cawley 11724f9df1 GUI: Add a tab for backend-specific options 2020-11-22 16:35:03 +00:00
Eugene Sandulenko 7ff34bc9ec PLUGINS: MetaEngineStatic -> MetaEngineDetection 2020-10-11 23:14:39 +02:00