Commit Graph
304 Commits
Author SHA1 Message Date
Walter Agazzi 65de989fa3 LILLIPUT: Complete Robin Hood detection title 2023-01-02 13:46:39 +02:00
Vladimir Serbinenko 81040b5d20 COMMON: Make memstream support SharedPtr-backed array
This allows to safely implement archive contents caches.

The change to lilliput is needed to allow to keep move-constructot
semantics of ScriptStream which would otherwise disappear because
DisposablePtr is non-copyable
2022-12-01 01:52:46 +01:00
Cameron Cawley f3b094e53f ENGINES: Change the MetaEngineDetection interface to match MetaEngine 2022-07-23 23:31:58 +02:00
Cameron Cawley a020300701 ENGINES: Remove use of getEngineId() in MetaEngine subclasses 2022-07-20 11:54:19 +02:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Orgad Shaneh 429d8c9bc2 LILLIPUT: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
Orgad Shaneh 0db343d364 ENGINES: Add missing getSavegameFile overrides
... for non-default names.

Fixes moving autosave to a new slot.

Trac #12977
2021-10-24 16:46:36 +02: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 daba272028 LILLIPUT: Add detection for Rome demo
This will not work yet since Rome is not supported.
2021-09-19 14:52:46 +02:00
Orgad Shaneh 7adad5aaf5 ENGINES: Streamline auto-save write/delete protection
Some engines call setAutosave and some don't. isAutosave is used to
determine if a saved game is an autosave, but in fact, on most cases it
just falls back to comparing the name to "Autosave".

This is wrong for several reasons:
* Older versions of ScummVM used Autosave 0.
* The name "Autosave" is translated, so if you change the language, it
  won't be detected.

Instead of relying on the name, use the well-known getAutosaveSlot() from
Engine/MetaEngine.

Fixes #12735.
2021-08-23 13:34:35 +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
sluicebox 8e1d90f8e4 ALL: Remove clearAllDebugChannels() from Engine dtors 2021-06-14 12:42:38 -05:00
Eugene Sandulenko 275cad9f78 LILLIPUT: Added missing reference to debug flags 2021-06-07 00:28:23 +02:00
ysj1173886760 414d6235b3 LILLIPUT: move debug channels to metaEngineDetection 2021-05-22 01:34:57 +02:00
Cameron Cawley 4ced49acd4 ENGINES: Changed AdvancedMetaEngine::createInstance to return a Common::Error 2020-12-04 20:57:14 +00:00
Eugene Sandulenko f397bdd74f LILLUPUT: Use macros in the detection table 2020-11-28 17:41:23 +01:00
Torbjörn Andersson ba37c52047 JANITORIAL: Remove some unnecessary semicolons 2020-11-17 07:22: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 5593b47e88 LILLIPUT: Split detection features & adapt to new plugins. 2020-10-03 14:56:36 +02:00
mataniko 581a6ec7d6 JANITORIAL: Rename kSupportsRTL to kSupportsReturnToLauncher 2020-05-12 10:36:38 +02:00
Eugene Sandulenko 911b7c9c3e LILLIPUT: Remove system include 2020-03-25 10:14:27 +01:00
Paul Gilbert afa27aa7c5 LILLIPUT: Refactor to use Engine debugger 2020-02-16 13:07:19 +02:00
Bastien Bouclet 4e931838ac LILLIPUT: Add override keywords 2020-02-09 12:43:15 +01:00
Eugene Sandulenko c131d6f719 LILLIPUT: Added override keywords 2020-02-05 15:44:24 +01:00
Paul Gilbert 5b80320525 ENGINES: Adding override keyword to hasFeature methods 2020-02-04 20:04:11 -08:00
Bastien Bouclet 4b42112721 ENGINES: Add an engine ID to all the engines 2019-11-03 11:43:00 +01:00
Bastien Bouclet 9a4c0ae281 ENGINES: Normalize the getName() result of metaengines
Also-By: Matthew Hoops <clone2727@gmail.com>
2018-12-10 06:47:27 +01:00
D G Turner 8f1e1bdd8c LILLIPUT: Minor Sound Function Name Change For Consistency.
This has no functional change, but improves the consistency with the
renamed stopSound() function.

Also, minor fixes for formatting, removal of redundant comments and code
in sound class.
2018-07-29 05:30:37 +01:00
D G Turner dd8e003602 LILLIPUT: Fix Compiler Warning About Hiding Overloaded Virtual. 2018-07-29 05:20:55 +01:00
D G Turner bdb307634f LILLIPUT: Remove Unused Engine Pointer from Sound Class.
Since this was unused, it was causing various compiler warnings of the
set-but-not-used type. If it is needed later, this code can be restored.
2018-07-29 03:56:20 +01:00
Strangerke b9e8320de7 LILLIPUT: Fix another regression 2018-04-29 00:55:52 +02:00
Strangerke ef1b0171bf LILLIPUT: Fix regression introduced in 56db8c626e 2018-04-26 07:10:20 +02:00
Strangerke 169a604199 LILLIPUT: Implement play / music 2018-04-26 00:43:05 +02:00
Strangerke dd152510af LILLIPUT: Remove some unused variables, initialize some others 2018-04-24 00:01:46 +02:00
Adrian Frühwirth a20f90cbb7 JANITORIAL: Fix formatting 2018-04-22 00:56:21 +02:00
Strangerke 56db8c626e LILLIPUT: Refactor engine, replace the use of MinMax by Common::Rect 2018-04-20 07:55:46 +02:00
Strangerke 7af31d6614 LILLIPUT: Add safeguard in homeInPathFinding 2018-04-20 07:21:06 +02:00
Strangerke 2f00d52a23 LILLIPUT: Fix memory leak 2018-04-20 07:10:38 +02:00
Strangerke c0de8dd04d LILLIPUT: Fix unsafe read of string reported by coverity 2018-04-20 06:55:10 +02:00
Adrian Frühwirth 9bee9e1ba6 JANITORIAL: Fix whitespace 2018-04-19 12:08:31 +02:00
Strangerke 25aa60726d LILLIPUT: Fix uninitialized variables 2018-04-19 07:58:01 +02:00
Strangerke 637f4c5c00 LILLIPUT: Fix second compression method in MUS extraction code 2018-04-19 07:33:29 +02:00
Strangerke 763cf2f6a4 LILLIPUT: Add code to load & decompress MUS file 2018-04-18 07:18:05 +02:00
Strangerke f01af1690e LILLIPUT: Fix a regresssion in scrollToViewportCharacterTarget(), some more renaming 2018-04-16 06:54:04 +02:00