1360 Commits

Author SHA1 Message Date
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
aryanrawlani28
eb78152664 HDB: Split detection features & adapt to new plugins. 2020-10-03 14:56:36 +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
bed05ea134 GUI: U32: Fix compilation errors across entire project
After the initial changes just to scummvm/gui for u32, this commit includes the whole project

- Widget creations now always have u32 descriptions, labels, or tooltips
- Message dialogs make use of default arguments instead of providing the same argument explicitly
- encode String::format properly before passing on as argument where necessary
- Modify hugo utils (yesNoBox and notify box) to use u32
- Also provide fake constructors for the above which redirect to the u32 constructor
- Convert all keymap descriptions to u32 across all engines
- showConfirmationDialog in mohawk now uses u32
- showScummVMDialog also uses u32
- Scumm engine has dialogs now which use u32
- General fixes and wrapping convertToU32String for setLabels and related functions
- Add a fake constructor to MesssageDialog which redirects to the u32 constructor
2020-08-30 14:43:41 +02:00
Cameron Cawley
44f7f801a1 HDB: Add keymapper support 2020-08-27 10:34:59 +02:00
Eugene Sandulenko
ef385b14bc HDB: Plug a few memory leaks. Bug #11142 2020-08-26 22:44:19 +02:00
Eugene Sandulenko
4f8a6ae527 HDB: Free sounds when they're not needed 2020-08-26 22:44:09 +02:00
mataniko
581a6ec7d6 JANITORIAL: Rename kSupportsRTL to kSupportsReturnToLauncher 2020-05-12 10:36:38 +02:00
Eugene Sandulenko
002e603c49 HDB: Initialize more class variables 2020-04-30 13:49:33 +02:00
Eugene Sandulenko
2f4fa27943 HDB: Use strlcpy 2020-04-30 13:46:00 +02:00
Eugene Sandulenko
a37e9a8f9a HDB: Replace NULL with nullptr 2020-04-28 09:42:27 +02:00
Eugene Sandulenko
6e162cfe60 HDB: Init rest of the variables and replace NULL with nullptr 2020-04-28 09:40:30 +02:00