1371 Commits

Author SHA1 Message Date
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
sluicebox
969cb1e426 HDB: Remove delete nullptr. PVS-Studio V575 2024-03-20 17:24:33 -07:00
Le Philousophe
d7c749864b HDB: 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
Le Philousophe
5bdd9e6f50 ALL: Unify zlib and gzio API
zlib is used when available and falls back on gzio.
This allows performance improvements as our CRC32 and gzio
implementations are slower than base zlib.
As zlib is available when libpng is present, this is sensible to
benefit from it.
2023-08-28 21:49:03 +02:00
PushmePullyu
34edc7e096 HDB: Fix double-free on voice playback
Sound::playVoice():
Do not delete source stream on failed MP3/Vorbis decoding.
This is already handled by the created Audio::MP3Stream/VorbisStream.
2023-06-21 10:01:47 +03:00
Zach Showers
a0ebd94ead HDB: Fixed not being able to pick up Red Unimail Envelope with keyboard 2023-02-20 19:41:06 +01:00
Eugene Sandulenko
1ef11b1725
HDB: Fix out of bounds access in Map 19 2022-12-05 20:21:02 +01:00
Eugene Sandulenko
fb7095f5a4
COMMON: Move all compression-related files to a separate directory 2022-12-01 11:53:02 +01:00
Cameron Cawley
e04000d4b0 COMMON: Move FFT, DCT, MDCT, RDFT, SineTable, CosineTable and getSineWindow into Math 2022-11-20 14:32:05 +01:00
Cameron Cawley
8c46a377ec HDB: Move the engine options into the MetaEngine subclass 2022-11-16 23:58:54 +01:00
Le Philousophe
8055e2d14c HDB: Don't use unsafe sprintf and vsprintf 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
cb949044db HDB: Refactor AI Functions to Avoid Incompatible Function Pointer Casts
These warnings were emitted by GCC when -Wcast-function-type was passed.

This fixes these by refactoring so the engine only uses a single function
pointer type with the "extra" parameters always present.
2022-07-23 17:00:23 +01:00
Orgad Shaneh
b2322a8c4f JANITORIAL: Add some long casts to match %ld format
Needed on Win64 compilation.
2022-06-12 10:24:34 +02:00
antoniou79
313c3ef89a HDB: Comment out the modify controls button
This was uncommented in previous commit for testing and was kept by mistake

In this commit, some of the functions for the modify controls screen are not implemented at a basic level. The modify controls screen is just a picture, but other than the remapping of keys, which would need more work to implement and probably synch with the ScummVM keymapped, it contains useful info on how the game controls work.
2022-05-25 13:26:46 +03:00
antoniou79
e401d2814f HDB: Keep exhaustion attached when scrolling away the rocket
Previously the scolling animation (to the left) would keep exhaustion in place
2022-05-25 12:58:59 +03:00
antoniou79
c8de160946 HDB: Use enum values for options and menu screen ids
Note that the Option screen for modifying controls (id 2) is not implemented
2022-05-25 12:58:59 +03:00
antoniou79
afc309393c HDB: Remove redundant check for empty music_driver value 2022-05-25 12:58:59 +03:00
antoniou79
6778baedcf HDB: Remove no longer used Sound::setMusicVolume() 2022-05-25 12:58:59 +03:00
antoniou79
1ab83c2a28 HDB: Add proper volume settings synchronization
Between GMM / ScummVM launcher settings and game

Also commented out some incomplete and unused code meant for cross fading or fading in and out music tracks (Songs)
2022-05-25 12:58:59 +03:00
antoniou79
10c2d00967 HDB: Split some menu vars into bool and integers
To clear up their role and improve code readability
2022-05-25 12:58:59 +03:00
antoniou79
3328b03b70 HDB: Remove redundant "g_hdb->_menu->" in menu code 2022-05-25 12:58:59 +03:00
antoniou79
d1b3d9fe2d HDB: Fix warp screen back button placement 2022-05-25 12:58:59 +03:00
antoniou79
5a7719cc66 HDB: Fix getting cheat enabled state from ConfMan 2022-05-25 12:58:59 +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
D G Turner
bee3506514 HDB: Fix Redundant Declaration Warnings
These are emitted by GCC if -Wredundant-decls is enabled.
2022-03-07 19:49:20 +00:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Orgad Shaneh
138f943076 HDB: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +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
Thunderforge
35c3668275 COMMON: Fixing misspellings "occured" -> "occurred"
Fixing this misspelled word across multiple parts of the codebase.
2021-09-25 21:36:42 +03:00
D G Turner
7da1bd1a80 HDB: Fix Two GCC Warnings When Building with C++-98 2021-08-07 20:22:37 +01: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
D G Turner
22766a339f HDB: Reduce GCC Compiler Warnings
These warnings occur from -Wcast-function-type due to the casting between
FuncPtr and EntFuncPtr. This change reduces the number of these required,
but further work will be needed to remove this fully without causing a
regression in game function.
2021-07-20 09:40:16 +01:00
D G Turner
04409da6de HDB: Minor Improvements for Code Readability
No functional change.
2021-07-20 07:33:19 +01:00
D G Turner
2a2606f8fa HDB: Fix for GCC Warnings from 64-bit Stream API Changes 2021-07-09 04:21:49 +01:00
Paul Gilbert
005561d305 COMMON: Increase Stream pos, seek, size from int32 to int64 2021-07-08 18:24:28 -07:00
Cameron Cawley
ef0048fa77 COMMON: Add standard actions for mouse button clicks 2021-04-06 11:15:42 +03:00
D G Turner
143cebf508 HDB: Fix Memset on Non-Trivial Structure GCC Compiler Warnings 2021-03-23 03:07:56 +00:00
Cameron Cawley
4ced49acd4 ENGINES: Changed AdvancedMetaEngine::createInstance to return a Common::Error 2020-12-04 20:57:14 +00:00
Torbjörn Andersson
ba37c52047 JANITORIAL: Remove some unnecessary semicolons 2020-11-17 07:22:49 +01: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
a56dc094b9 ENGINES: ALL: Move detection_enums -> detection.h
- Cleans up headers quite a bit.
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
f3b9477893 ENGINES: ALL: Add header guards for the new detection-header files. 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