Commit graph

62 commits

Author SHA1 Message Date
Eugene Sandulenko
949027a01e
ENGINES: [l-w]: Turn debug enums from bitfield into plain enums 2025-02-22 21:55:59 +01:00
Le Philousophe
a5376d706f NGI: Don't reopen the NGIArchive when reading a content
This makes the game perform poorly with Android SAF.
The file is open once at the init and we then seek in it to look for
contents.
It's how it works for other archives like Zip.

In the same time, cleanup the headers.
2025-01-26 15:11:19 +01:00
Eugene Sandulenko
847c714e68
CONFIGURE: Split indeo into indeo3 and indeo45 components
Also, add indeo3 as a dependency to bbvs and add all codect to testbed
2024-12-27 12:40:26 +01:00
Eugene Sandulenko
a6e3feed61
CONFIGURE: Turned Indeo codecs into 'indeo' component
For Director engine it is marked as optional, since so far onnly
one game is using it.

This could lead to regressions since we were not tracking which
games use Indeo codecs since we added them in 2016 (Indeo 4&5) and
2010 (Indeo 3). So, there could be an AVI video which is now stops
playing and produces a warning. In this case, the 'indeo' component
must be added to the respective engine.
2024-12-26 01:10:14 +01:00
Eugene Sandulenko
fdecb6afca ENGINES: Add components to configure.engine's explanatory comment 2024-12-25 00:34:39 +01:00
Eugene Sandulenko
45053f481d
NGI: Added detection for Lithuanain fullpipe 2024-09-25 17:41:43 +02:00
Hubert Maier
51950146d8 JANITORIAL: NGI: Fix typos 2024-09-16 10:31:30 +03:00
Cameron Cawley
89c57d29ef COMMON: Move more maths functions into the Math namespace 2024-07-27 14:00:48 +03:00
Le Philousophe
7e0048b4a3 ENGINES: Add ADDynamicGameDescription class
This class manages a buffer where all data usually stored in detection
plugin will get copied before unloading the plugin and starting the
game.

This class expects that two functions are present in every
GameDescription: sizeBuffer which calculates how many bytes we will need
to store the entry in RAM and toBuffer which copies the data in the
buffer and fix the pointers in the class.
At the end, it is expected that an ADDynamicGameDescription doesn't
depend anymore on data stored in the detection plugin.

The AD_GAME_DESCRIPTION_HELPERS macro allow to implement these functions
in all GameDescription which don't have any pointer except those in
ADGameDescription.
2024-06-30 18:39:06 +02:00
Le Philousophe
b61bd3ff85 ENGINES: Create a type aware advanced meta engine 2024-06-30 18:39:06 +02:00
Le Philousophe
90b886097f ENGINES: Create a type aware advanced detector 2024-06-30 18:39:06 +02:00
Filippos Karapetis
f4244cc700 NGI: Use true/false keywords for boolean variables 2024-05-13 09:47:29 +03:00
Matthew Jimenez
5219c99400 GRAPHICS: Move PaletteManager definition to a separate header 2024-03-12 12:24:00 +02:00
Eugene Sandulenko
8c8eee7d1c
NGI: Avoid using bitfields in debugC() 2023-12-28 01:41:10 +01:00
Le Philousophe
7961472a09 NGI: Migrate engine to Path 2023-12-24 13:19:25 +01:00
Eugene Sandulenko
ec2dd2726b ENGINES: Added optional parameter to canSave/LoadGameStateCurrently() for indicating the reason 2023-12-08 12:21:16 +01:00
sluicebox
4fcb00a835 NGI: Fix memory leaks when flipping bitmaps
Coverity CID 1433114
Coverity CID 1433128
2023-11-02 09:27:33 -07:00
Matthew Jimenez
7bd7dbc8a4 NGI: Replace use of TransparentSurface with ManagedSurface 2023-10-29 01:02:22 +02:00
Eugene Sandulenko
146c3df549
NGI: Fix warning 2023-09-19 14:46:12 +02:00
Wyatt Radkiewicz
41a942c5ce ALL: Renamed TS_ARGB to MS_ARGB 2023-08-13 00:22:10 +02:00
elasota
b8acbe6bee COMMON: Archive path refactoring, add getFileName and getPathInArchive that unambiguously return the filename or the full path 2023-07-19 18:51:37 +02:00
Donovan Watteau
f04d35a9bd NGI: Remove various unused variables 2023-05-15 18:08:08 +02:00
Malika Uteuliyeva
573d50f4e5 NGI: Remove parts that overlap with ExtendedSaves 2023-02-25 14:32:38 +01:00
Le Philousophe
19fe3f8b90 NGI: Don't use unsafe sprintf and vsprintf 2022-10-23 22:46:19 +02:00
Le Philousophe
e249dac38e NGI: 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
D G Turner
929ea42b8e NGI: Remove Redundant Declaration
This causes GCC Warnings when -Wredundant-decls is enabled.
2022-03-07 10:18:50 +00:00
Pragyansh Chaturvedi (r41k0u)
ebc01f09c9 NGI: Fix stuck when teleporting to foot (bug #10395) 2022-03-06 17:48:40 +01:00
Pragyansh Chaturvedi (r41k0u)
65b6e897d2 NGI: Fix Inconsistent character state (bug #9669) 2022-03-06 17:47:21 +01:00
Pragyansh Chaturvedi (r41k0u)
c5fc150cd5 NGI: Fix #10396: Rolling bridge is wrong state 2022-03-06 12:00:03 +02:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
D G Turner
c7002d9b45 NGI: Fix Remaining Unused Variable GCC Compiler Warning 2021-12-24 06:14:41 +00:00
Filippos Karapetis
a8745c9f35 NGI: Disable unused variable
Thanks to eientei for reporting this
2021-12-24 03:15:33 +02:00
Mathias Parnaudeau
a10d723d25 NGI: Fix memory leak in PictureObject
The default destructor did not freed the picture data belonging
to the PictureObject instances, causing many memory leaks.
2021-11-17 23:29:32 +02:00
Orgad Shaneh
1b73b90224 NGI: 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
Filippos Karapetis
1a36cda90f NGI: Plug memory leaks - bug #13071
Create a new instance of a TransparentSurface in Bitmap's copy
constructor, instead of holding a reference to the original
TransparentSurface. This allows to gracefully delete Bitmap's
TransparentSurface when an instance of Bitmap is destroyed and
resolves the memory leaks when changing rooms
2021-11-14 13:33:41 +02:00
Orgad Shaneh
78ef6203de ENGINES: Fix getSavegameFile for almost all engines
Use kSimpleSavesNames correctly, add where needed, remove where needed.

Trac #12977
2021-11-10 21:49:48 +00:00
Orgad Shaneh
fe104cc337 ENGINES: Use MetaEngine consistently for getting autosave slot
The autosave refactoring that was done in
7adad5aaf5 used g_engine for identifying the
autosave slot. This worked for in-game save/load, but doesn't fit when
called from the launcher.

Fix by passing MetaEngine to SaveStateDescriptor ctor and using it for this
query.

Amends 7adad5aaf5.
2021-10-24 16:46:06 +02:00
trembyle
99e6d62289 NGI: Add detection for early Full Pipe demo
Released in 1997, a full 6 years before the game came out.
2021-09-19 14:52:46 +02:00
djsrv
7eb4841065 ALL: Use Path type in Archive functions 2021-08-07 10:44:37 +02:00
Max Horn
d3764bbef3 NGI: change credits to reflect engine renaming 2021-08-05 00:01:46 +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
Paul Gilbert
005561d305 COMMON: Increase Stream pos, seek, size from int32 to int64 2021-07-08 18:24:28 -07:00
ysj1173886760
9c7718465e NGI: move debug channels to metaEngineDetection 2021-05-22 01:34:57 +02:00
Eugene Sandulenko
1d72d5be35
NGI: Fix alpha handling to sync with TransparentSurface 2021-05-12 23:19:19 +02:00
Eugene Sandulenko
ba580538fb
NGI: Fix endianness in RB picture decompression 2021-04-29 23:07:44 +02:00
Eugene Sandulenko
b484752e6e
NGI: Added detection for the Steam version of Full Pipe. Bugreport #10569
The game has no difference from English release besides the
executable.
2021-04-29 23:07:44 +02:00
Cameron Cawley
4ced49acd4 ENGINES: Changed AdvancedMetaEngine::createInstance to return a Common::Error 2020-12-04 20:57:14 +00:00
Eugene Sandulenko
7ff34bc9ec PLUGINS: MetaEngineStatic -> MetaEngineDetection 2020-10-11 23:14:39 +02:00