207 Commits

Author SHA1 Message Date
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
Paul Gilbert
055a9effc2 ENGINES: Adding an isAutosave flag to the new saveGameStream method
This is primarily future-proofing. Many games either show a message
or do some other UI action like closing an open game menu, and
obviously that should only be done when a savegame created by the
user is done, rather than for regular autosaves. By making this a
flag, when engines override saveGameStream, they'll be able to
tell if it's an autosave, and only do UI changes if not
2020-02-04 19:05:26 -08:00
Paul Gilbert
31f4bc74ab GRIFFON: Update save code to use new engine save methods 2020-02-04 19:05:26 -08:00
Henrik "Henke37" Andersson
0c63e5f4fd GRIFFON: Game uses vorbis, not midi, for the music. 2020-01-15 20:49:24 +02:00
Eugene Sandulenko
da5f8d0642 GRIFFON: Initialize more variables 2020-01-12 23:20:58 +01:00
Harsh Bawari
6bf14cf547 GRIFFON: Fix slugginess in final boss and a crash when loading the Griffon.s03 map 2020-01-11 17:35:55 +02:00
Cameron Cawley
c5a5e0f68a GRIFFON: Replace use of abs() with ABS() 2019-11-17 22:32:39 +01:00
Eugene Sandulenko
f113a00141 GRIFFON: Allow skipping logos with ESC 2019-11-15 00:52:58 +01:00
Eugene Sandulenko
25a12ad89a GRIFFON: Fix compilation on Amiga 2019-11-14 00:15:00 +01:00
Eugene Sandulenko
7772850f30 GRIFFON: Fix GMM loading from options and title 2019-11-13 22:07:08 +01:00
Eugene Sandulenko
3d6e22ec37 GRIFFON: Fix loading from GMM 2019-11-13 22:07:08 +01:00
Eugene Sandulenko
cc9d8b030a GRIFFON: Fix random loading time 2019-11-13 22:07:08 +01:00
Eugene Sandulenko
3457f67e9a GRIFFON: Fix loading from launcher 2019-11-13 22:07:08 +01:00
Eugene Sandulenko
06909eb320 GRIFFON: Implemented loading from launcher 2019-11-13 22:07:08 +01:00
Eugene Sandulenko
50f964770c GRIFFON: Added support for extended saves 2019-11-13 22:07:08 +01:00
Eugene Sandulenko
1911d459df GRIFFON: Fix color fill for hidden 'save', and skip it in the navigation 2019-11-13 22:07:08 +01:00
Eugene Sandulenko
8f492cf877 GRIFFON: Hide 'save' item from menu when there is nothing to save 2019-11-13 22:07:08 +01:00