Commit Graph

157 Commits

Author SHA1 Message Date
Donovan Watteau
a86b22a40d ENGINES: Use MSVC_PRINTF when GCC_PRINTF is used 2022-11-29 01:37:16 +01:00
elasota
5aeaa1015e ENGINES: Fix warning about passing a non-trivial class to va_start. 2022-11-26 23:09:24 +02:00
Daniel Abramowitz
1273fb34de JANITORIAL: Adjust comment: SaveFileMAnager -> SaveFileManager 2022-10-09 23:40:49 +03:00
Le Philousophe
6d60f91bc8 Revert "ENGINES: Don't pass U32String by value"
This reverts commit 30d8b64657.
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
30d8b64657 ENGINES: Don't pass U32String by value 2022-09-18 16:15:56 +02:00
Henrik "Henke37" Andersson
ef50d7e3a7 ENGINES: Have engines declare if they provide custom help. 2022-08-07 22:45:07 +03:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01: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
c8c429a425 ENGINES: Document -1 as return value of getAutosaveSlot when not supported 2021-09-10 19:38:39 +03:00
Orgad Shaneh
121d06bf4a ENGINES: Remove deprecated function 2021-08-23 20:53:27 +03:00
Orgad Shaneh
6aeda12247 ENGINES: Warn when overwriting a non-autosave on autosave 2021-08-23 13:34:35 +02: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
Orgad Shaneh
46cd550b7c ENGINES: Fix article in comment 2021-04-20 02:31:58 +02: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
0739c1a165
JANITORIAL: Remove trailing spaces 2021-04-16 14:13:24 +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
Cameron Cawley
ea7a6ec27c ENGINES: Mark Engine::getDebugger() as final 2021-03-28 21:36:15 +03:00
sluicebox
93eeffc84d JANITORIAL: Update old bug tracker numbers 2021-03-03 02:15:05 +02:00
Bartosz Gentkowski
f04056519a DOXYGEN: Review of high prio headers from engines
This is a doxygen review for 4 header files that have been
identified as high priority for GSoD:

- advancedDetector.h
- metaengine.h
- engine.h
- util.h

It also adds doxy groups to other headers from this folder to
make them appear properly in the structure.
2020-12-02 00:13:49 +00: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
athrxx
3437beffab COMMON: add new flag ADGF_UNSUPPORTED to advanced detector
This will give an error dialog and not actually start the game. The dialog can be customized with a message from the ADGameDescription::extra field.

Some changes have been made to DetectedGame to prevent the string from the extras field to be appended to the game description.
2020-11-08 20:31:39 +01:00
Eugene Sandulenko
7ff34bc9ec PLUGINS: MetaEngineStatic -> MetaEngineDetection 2020-10-11 23:14:39 +02:00
Paweł Kołodziejski
35b9cccbde ALL: Merge ResidualVM 2020-10-09 19:44:13 +02:00
Pawel Kolodziejski
4631c0e2ed ALL: Sync with ScummVM rev: a4002bdeee 2020-10-04 23:59:26 +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
aryanrawlani28
992abce74a ENGINES: Rename getMetaEngine helpers
- getME -> getMetaEngineStatic (static parts)
- getMEC -> getMetaEngine (dynamic parts)
2020-10-03 14:56:36 +02:00
aryanrawlani28
71a820caff ENGINES: Begin class renaming of ME & AME
- ME -> MetaEngineStatic (static parts)
- MEC -> MetaEngine (dynamic parts)
2020-10-03 14:56:36 +02:00
aryanrawlani28
ce80c0c730 ENGINES: Add a helper method - getMetaEngineConnect().
- Get a metaEngine plugin by querying the ConfMan.
- Next, use this MetaEngine to find a matching enginePlugin.
- Return the enginePlugin.
2020-10-03 14:56:36 +02:00
Pawel Kolodziejski
d5304e2568 ALL: Synced with ScummVM - rev: 33a47d23b8 2020-09-03 02:21:14 +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
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
e22b32abfe GUI: U32: Use Common::U32String::format where necessary and GUIError to u32
- Where necessary as in, where translated messages are used.
- GUIErrorMessage now takes in U32String
- error messages across some engines use U32Strings. they are changed because they show a message dialog.
2020-08-30 14:43:41 +02:00
Eugene Sandulenko
1302adc796 ENGINES: Added GUIErrorMessageWithURL() 2020-08-26 17:28:13 +02:00
Pawel Kolodziejski
17df02d25d ALL: Sync with ScummVM - rev a94849abc4 2020-06-24 02:01:11 +02:00
Bastien Bouclet
8ccb564772 3DS: Fix crash when quitting with the home button when a game is started
Fixes #11512.
2020-06-22 21:10:41 +02:00
Pawel Kolodziejski
8f4e1c6cf3 Sync with ScummVM rev. 654b8208b8 2020-06-22 08:14:16 +02:00
mataniko
581a6ec7d6 JANITORIAL: Rename kSupportsRTL to kSupportsReturnToLauncher 2020-05-12 10:36:38 +02:00
mataniko
06242a712b JANITORIAL: Rename EVENT_RTL
Now that ScummVM is adding RTL support, the EVENT_RTL should be disambigious that it is for returning to launcher
2020-05-12 10:36:38 +02:00
Henrik "Henke37" Andersson
830a239b04 ENGINES: Move semantics for PauseToken
Only compilers who understands move semantics see the code.
2020-05-10 23:39:31 +02:00
Henrik "Henke37" Andersson
c15f268e9b ENGINES: Allow clearing a PauseToken 2020-05-10 23:39:31 +02:00
Henrik "Henke37" Andersson
ea7db12ee0 ENGINES: Base PauseToken support 2020-05-10 23:39:31 +02:00
Pawel Kolodziejski
b586571900 ALL: synced with ScummVM commit 09bf38c120 2020-05-09 20:05:54 +02:00
Bastien Bouclet
0d895ec2f9 ENGINES: Allow showing the engine options in the in-game options dialog 2020-03-28 07:38:39 +01:00
Paul Gilbert
4f26f2c7ef ENGINES: Autosave won't save over a custom save in it's slot 2020-02-16 15:44:28 -08:00
Paul Gilbert
1687427e8e ENGINES: Mark autosave slots as write protected
If the autosave slot doesn't yet have any file in it, when the
GMM save dialog is open, the autosave slot will show a default
'Autosave' entry which is write-only, to prevent users
accidentally making a savegame in that slot
2020-02-16 15:44:28 -08:00
Paul Gilbert
a2a8229abe ENGINES: Do an autosave before loading a new game
Unfortunately, this will only apply to new engines that
use the Engine::loadGameState method. Other existing engines call
loadGameState directly and provide their own implementations,
so there's nowhere convenient to add the call that'd work for
all of them
2020-02-16 15:44:28 -08:00
Paul Gilbert
d35d91e6f6 MOHAWK: Remove autosave code 2020-02-16 15:44:28 -08:00