Commit Graph

223 Commits

Author SHA1 Message Date
Cameron Cawley
e8dee87a04 GRIFFON: Move the engine options into the MetaEngine subclass 2022-11-16 23:58:54 +01:00
Le Philousophe
0674bd29a7 GRIFFON: Don't use unsafe sprintf and vsprintf 2022-10-23 22:46:19 +02:00
Le Philousophe
0a0d21b904 GRIFFON: Don't use unsafe strcat and strcpy 2022-10-23 22:46:19 +02:00
Cameron Cawley
f3b094e53f ENGINES: Change the MetaEngineDetection interface to match MetaEngine 2022-07-23 23:31:58 +02:00
Cameron Cawley
a020300701 ENGINES: Remove use of getEngineId() in MetaEngine subclasses 2022-07-20 11:54:19 +02:00
D G Turner
5ac3ccc601 GRIFFON: Fix Various Signed vs. Unsigned GCC Compiler Warnings
These were introduced by changing the type of the various timer
variables from int to uint as part of the fix for timer drift during
pause. However, while these values do appear to be always positive,
this change does not appear to be required for the fix and results in
a large number of compiler warnings.
2022-05-24 23:14:50 +01:00
athrxx
cb3424be01 GRIFFON: fix timer behavior during GMM pause
(possible fix for bug no. 13489 - "GRIFFON: Bringing up ScummVM menu (Alt+F5) corrupts engine")
2022-05-17 23:32:22 +02:00
athrxx
bd1dbecde9 TTS: (ENGINES) - add support for tts enable function
The new option only works as intended if the engine that have TTS support apply their own settings. It cannot be globally implemented before and after runGame(), since the engines don't all use the same config manager variables (sometimes "tts_enabled_speech", "tts_enabled" or "tts_narrator, sometimes more than one of these).
2022-04-26 21:08:41 +03:00
Torbjörn Andersson
e06f3c9a5a GUI: Allow game option checkboxes to be disabled
Depending on other game option checkboxes. This is used to
enable/disable the semi-smooth scrolling checkboxes for FM Towns Loom,
since it's only used when smooth scrolling is enabled.
2022-04-21 11:07:17 +02:00
Paweł Kołodziejski
7714b7efa8
GRIFFON: Fixed compiler warning about not used array 2022-03-06 14:30:20 +01:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Filippos Karapetis
df04cdd3df GRIFFON: Remove unused variable
Thanks to eientei for reporting this
2021-12-24 03:14:06 +02:00
Orgad Shaneh
3162ad4dfb GRIFFON: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
Orgad Shaneh
ee57380de7 ENGINES: JANITORIAL: Remove 'virtual' when override is specified 2021-11-14 14:32:04 +02:00
Max Horn
2f1f8f502e DEVTOOLS: move credits from devtools/credits.pl to engines
This employs a "lazy" approach: the "format" for the credits stays
exactly as it was, i.e., perl code. Of course one may want to change
this to another format (e.g. YAML, JSON, XML; or also shell script or
AWK, like `configure.engine` uses). But I deliberately kept it simple,
to get a minimal change that is easy to verify. Any further changes to
e.g. the format can be layered atop this.
2021-08-05 00:01:46 +02:00
Twan
b28a106ff5
GRIFFON: Add Text To Speech support 2021-06-08 18:23:44 +01:00
Eugene Sandulenko
5e7fe2dc57
JANITORIAL: Replace spaces in indentation with tabs 2021-04-15 21:20:36 +02:00
athrxx
715c9f6993 GRIFFON: fix invalid mem access / crash
This can be triggered by walking 1 screen left and 1 screen down from the start.

When loading a new map the game resets only onMap for all members of the _npcInfo array, but does not always check that value when iterating over the (valid and invalid) entries of the array.
2021-02-26 14:48:48 +01:00
athrxx
3b4515b337 GRIFFON: get rid of "too many sound handles" error
The error is triggered quite easily. You can get that right at the start, walking 1 screen left, engaging multiple monsters simultaneously.

That code looks a bit suspicious per se, since it still tries to return a value of -1 after the error call. But maybe that's just to satisfy some compiler. I've replaced the error with proper handling of the return value and I've also added in-bounds-checks for all uses of the sound handles.
2021-02-26 14:48:42 +01:00
Thierry Crozat
07706e5f78 GRIFFON: Fix Return to Launcher
The griffon engine claimed to surport the kSupportsReturnToLauncher
feature, but in practice it did not work as it only checked the
EVENT_QUIT and not the EVENT_RETURN_TO_LAUNCHER.
2021-01-20 23:23:21 +00:00
Cameron Cawley
4ced49acd4 ENGINES: Changed AdvancedMetaEngine::createInstance to return a Common::Error 2020-12-04 20:57:14 +00:00
Eugene Sandulenko
5936026209 ALL: Clarify POTFILES, remove redundant common/translations.h includes 2020-11-10 03:03:49 +01:00
Eugene Sandulenko
7ff34bc9ec PLUGINS: MetaEngineStatic -> MetaEngineDetection 2020-10-11 23:14:39 +02:00
Eugene Sandulenko
7ea6781043 PLUGINS: PLUGIN_TYPE_METAENGINE -> PLUGIN_TYPE_ENGINE_DETECTION 2020-10-11 23:12:32 +02:00
aryanrawlani28
d26bbe521c ENGINES: ALL: Finish renaming ME & AME classes
- ME -> MetaEngineStatic (static parts)
- MEC -> MetaEngine (dynamic parts)
2020-10-03 14:56:36 +02:00
aryanrawlani28
73af65eedb GRIFFON: Add missing header for translations 2020-10-03 14:56:36 +02:00
aryanrawlani28
29ceb07959 ENGINES: ALL: Revert detection submodule to be directly present in the engine directory
- DETECT_OBJS are present and added inside an engine's modules.mk file.
2020-10-03 14:56:36 +02:00
aryanrawlani28
8189a05316 ENGINES: ALL: Adapt to changes for new plugins by defining a new detection module
For each engine:
- Make a new folder detection
- Move detection-related files inside the folder
- Add a new module "enginename/detection"
- Add DETECT_OBJS here
- Adjust the normal engine module to remove detect_objs
- Adjust every file for the new changes.
2020-10-03 14:56:36 +02:00
aryanrawlani28
854a499307 GRIFFON: Split detection features & adapt to new plugins. 2020-10-03 14:56:36 +02:00
Paul Gilbert
bf754b76aa ENGINES: Cleanup of get savegame file & patterns 2020-09-19 09:31:49 -07:00
Paul Gilbert
05620460e0 ENGINES: Fix savegame filename format for new-type saves
This also fixes a problem with the Griffin engine, which
although it was using the new type saves, was using a
target.s?? format, so wasn't listing files in the GMM
save dialog
2020-09-18 21:19:32 -07:00
Eugene Sandulenko
c65f3e071c ALL: Remove ADGF_TESTING flags before the 2.2.0 release 2020-09-13 13:09:02 +02:00
Thierry Crozat
77f45f8ca6 GRIFFON: Add default mapping for game controllers 2020-09-10 17:56:55 +01:00
Thierry Crozat
cce713ee4c GRIFFON: Add keymapper input support 2020-09-10 03:17:58 +01:00
Thierry Crozat
adbd5cfd54 GRIFFON: Fix use of uninitialized variables reported by valgrind 2020-09-10 00:34:45 +01:00
Thierry Crozat
cb65fc2671 GRIFFON: Fix out of bound write when loading map
This was a bug present in both the original FreeBASIC code and the
C port by Dmitry Smagin. So having no referemce, I am not completely
sure this is the correct way to fix it, but I have not detected any
issue playing the game after this change.
2020-09-10 00:34:45 +01:00
Eugene Sandulenko
3f7ceaff89 GRIFFON: Enable engine for testing 2020-08-25 12:22:10 +02:00
Eugene Sandulenko
9e4ad94a0a GRIFFON: Revert bad change which broke wound animation 2020-08-12 21:20:10 +02:00
mataniko
581a6ec7d6 JANITORIAL: Rename kSupportsRTL to kSupportsReturnToLauncher 2020-05-12 10:36:38 +02:00
ixote
110e232ed7 GRIFFON: Simplify rendering calls 2020-04-01 20:40:16 +02:00
Eugene Sandulenko
26ba833c6a GRIFFON: Remove redundant call 2020-03-30 23:37:21 +02: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
af265a12ac GRIFFON: Remove autosave code 2020-02-16 15:44:28 -08:00
Paul Gilbert
a00e44ba6c ENGINES: Merge saveGameState virtual methods into a single one 2020-02-16 15:44:28 -08:00
Paul Gilbert
d91ec90db9 GRIFFON: Refactor to use Engine debugger 2020-02-16 13:07:19 +02:00
Bastien Bouclet
a00fdb5040 GRIFFON: Add override keywords 2020-02-09 12:43:15 +01:00
Eugene Sandulenko
defdf02a22 GRIFFON: Added override keywords 2020-02-05 15:22:53 +01:00
Paul Gilbert
5b80320525 ENGINES: Adding override keyword to hasFeature methods 2020-02-04 20:04:11 -08:00
Paul Gilbert
9f8c45ac4e ENGINES: Provide a default MetaEngine::hasFeature with extended save options on 2020-02-04 20:04:11 -08:00
Paul Gilbert
318c7003fc GRIFFON: Implement autosaves 2020-02-04 19:05:26 -08:00