Commit Graph

1343 Commits

Author SHA1 Message Date
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
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