1333 Commits

Author SHA1 Message Date
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
Eugene Sandulenko
a446809fc3 HDB: Remove redundant check thanks to strlcpy() 2020-04-28 09:40:05 +02:00
Eugene Sandulenko
c212217063 HDB: Remove redundant check 2020-04-27 18:29:39 +02:00
Eugene Sandulenko
c5868e1611 HDB: Add sanity checks 2020-04-27 18:29:39 +02:00
Eugene Sandulenko
16f1ff13bc HDB: Use Common::strlcpy() everywhere 2020-04-27 18:29:39 +02:00
Eugene Sandulenko
8bf2747b32 HDB: Initialize class variables 2020-04-27 15:18:17 +02:00
Paul Gilbert
a00e44ba6c ENGINES: Merge saveGameState virtual methods into a single one 2020-02-16 15:44:28 -08:00
Bastien Bouclet
68fbf9135d HDB: Add override keywords 2020-02-09 12:43:15 +01:00
Eugene Sandulenko
45a287ce13 HDB: Added override keywords 2020-02-05 15:27:09 +01:00
Paul Gilbert
5b80320525 ENGINES: Adding override keyword to hasFeature methods 2020-02-04 20:04:11 -08:00
Cameron Cawley
46056aba3c ENGINES: Reduce winexe_*.h header includes 2020-01-11 17:34:12 +02:00
D G Turner
4be7972561 HDB: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
2019-12-03 22:12:24 +00:00
Bastien Bouclet
9c8bd056d6 ENGINES: Stop using 'single id' 2019-11-03 11:43:00 +01:00
Bastien Bouclet
4b42112721 ENGINES: Add an engine ID to all the engines 2019-11-03 11:43:00 +01:00
Henrik "Henke37" Andersson
37293f5b3f HDB: Using the class keyword makes the intended use clearer. 2019-10-11 18:10:46 +02:00
Henrik "Henke37" Andersson
b62b3ab859 HDB: No need to restate that member functions are indeed part of the class. 2019-10-11 18:10:46 +02:00
Henrik "Henke37" Andersson
1d9e7568fd HDB: Have a return value if the needed codec isn't included in the build. 2019-10-11 18:10:46 +02:00
Henrik "Henke37" Andersson
5675a00d8f HDB: Bail if the music stream couldn't be created. 2019-10-11 18:10:46 +02:00
Henrik "Henke37" Andersson
89b20bbb86 HDB: Factor out the song code into the Song class, avoiding a lot of duplicate code. 2019-10-11 18:10:46 +02:00
Hubert Maier
79b70f9cf5 JANITORIAL: Keep copyright "sign" upper-case like the rest of the engines 2019-10-08 09:19:06 +02:00
Eugene Sandulenko
9e2bcfbf79 HDB: Remove ADGF_TESTING flag 2019-10-04 23:01:08 +02:00
Henrik "Henke37" Andersson
61e7069169 HDB: The engine does not use mid, mark the games as such. 2019-09-29 19:34:16 +03:00
jepael
f702537820 HDB: Fix Shadowed Variable Compiler Warning 2019-09-26 20:01:24 +01:00
Strangerke
3996676c45 HDB: Fix issue in stylusDown 2019-09-22 14:01:51 +02:00
sluicebox
a76c476b19 HDB: Use fabs instead of abs for doubles
Fixes VS2015 build
2019-09-21 16:27:58 -07:00
D G Turner
d7972603e7 HDB: Fix Game Breaking Bug in Right Mouse Button Handling
The right mouse button (which is the "Use" button for throwing gems etc.)
function sets the Button B flag in the _buttons flag field, but never
cleared it. This resulted in blocking of setting of movement waypoints
with the left button and thus locked up the player character.

You could avoid this by using the "Return" key which is also mapped to
use, but this would only be possible on desktop ports or with a virtual
keyboard.

This commit fixes the mouse handling code to clear the flag and thus
avoids future bug reports.
2019-09-22 00:11:51 +01:00
Eugene Sandulenko
9d028ac4ac HDB: Guard for corrupted sound data 2019-09-20 21:55:08 +02:00
sluicebox
52166aa3b1 HDB: Fix missing semicolon 2019-09-19 02:05:25 -07:00