85 Commits

Author SHA1 Message Date
Cameron Cawley
441b02d057 DETECTION: Use uint32 for ADGameFileDescription file size 2024-06-30 19:13:41 +02:00
Le Philousophe
90b886097f ENGINES: Create a type aware advanced detector 2024-06-30 18:39:06 +02:00
Le Philousophe
4b00b7e83d ADL: Migrate engine to Path 2023-12-24 13:19:25 +01:00
Walter van Niftrik
01bb2bc689 ADL: Add support for three more hires4 versions 2023-06-05 14:26:21 +02:00
Cameron Cawley
794a61395a ADL: Move the engine options into the MetaEngine subclass 2022-11-16 23:58:54 +01:00
Cameron Cawley
f3b094e53f ENGINES: Change the MetaEngineDetection interface to match MetaEngine 2022-07-23 23:31:58 +02:00
athrxx
54af166305 COMMON: (AD) - further reduce output of mass add detection
Follow-up to the feature that allows skipping certain ADGF flags.

This here now also allows skipping of incomplete file/md5/size matches. It is basically the same behavior as the graylist. For the mass add all files are treated as if they are on the list.
2022-06-12 10:12:39 +02:00
athrxx
e01416ef32 COMMON: (AD) - allow mass add to skip targets with certain ADGF flags
I added skipping for the ADGF_WARNING and ADGF_UNSUPPORTED flags.

For me, this is mostly about fixing bug no. 13282. We sometimes have bogus entries which only have the purpose of presenting the error message (reasons for being unsupported) contained in the extra field of the detection entry.
2022-06-12 10:12:39 +02: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
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Eugene Sandulenko
ccfaf478ab
AD: Make sure that we initialize hashmaps. Unfortunately, this leads to less const'ness 2021-11-29 01:50:03 +01:00
Orgad Shaneh
b125faf954 ADL: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
Walter van Niftrik
9abd1d8d53 ADL: Remove testing flag for hires1 French 2021-08-16 19:24:46 +02:00
Walter van Niftrik
485e5def14 ADL: Add support for hires1 PD variant 2021-07-28 01:07:03 +02:00
Walter van Niftrik
87a75ad02b ADL: Add support for more hires2 variants 2021-07-27 23:56:27 +02:00
Walter van Niftrik
691392a109 ADL: Make hires1 extra fields more descriptive 2021-07-27 23:56:27 +02:00
Walter van Niftrik
5f6c88ef15 ADL: Add support for later French hires1 2021-07-24 00:56:51 +02:00
Walter van Niftrik
56390d5f5f ADL: Add support for hires1 french (early version) 2021-07-24 00:56:51 +02:00
Walter van Niftrik
960811fc55 ADL: Add support for another early hires1 2021-07-24 00:56:51 +02:00
Walter van Niftrik
ce2742a828 ADL: Add detection entry for early hires1 2021-07-24 00:56:51 +02:00
ysj1173886760
5f74ffcf0a ADL: move debug messages in detection into kDebugGlobalDetection channel 2021-05-22 01:34:57 +02:00
ysj1173886760
0cfdf7bb6e ADL: move debug channels to metaEngineDetection 2021-05-22 01:34:57 +02:00
Eugene Sandulenko
2a317b611d ADL: Use macros in detection tables 2020-11-28 13:18:19 +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
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
0a14511547 ADL: Remove unneeded functions from detection & move to metaengine. 2020-10-03 14:56:36 +02:00
aryanrawlani28
c2428c7a8f ADL: Split detection code & adapt to new plugins. 2020-10-03 14:56:36 +02:00
Eugene Sandulenko
58499ef0cd ADL: Add override keywords 2020-01-31 12:44:40 +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
41a1d446dd ADL: The engine does not support midi. Mark the games as such. 2019-09-29 19:34:16 +03:00
Walter van Niftrik
32824ea83f ADL: Improve color accuracy
This adds two new display modes to replace the old one. One is a
16-color mode and the other does TV "emulation" based on code in
AppleWin. Both of these modes should deliver more accurate colors,
including NTSC artifact colors.
2019-08-12 02:18:34 +02:00
Walter van Niftrik
2bb5ef5aeb ADL: Fix double listing in detector 2019-07-20 00:20:44 +02:00
Walter van Niftrik
85efc49e0e ADL: Add another hires6 detection entry 2019-07-19 22:42:00 +02:00
Walter van Niftrik
c0a515bcf8 ADL: Add support for .WOZ floppy images 2019-07-19 14:24:43 +02:00
Walter van Niftrik
14bfe02b81 ADL: Add support for 40/8/512 PC raw disk images 2019-07-17 09:54:14 +02:00
Walter van Niftrik
39acda0c9f ADL: Clean up usage of override specifier 2019-07-16 16:24:20 +02:00
Walter van Niftrik
22ef407918 ADL: Change comment for hires6 detection entry
This detection entry also matches the floppy release. While the version on the
Roberta Williams Anthology has been patched to remove the copy protection,
this patch lies outside of our md5sum range.
2018-12-25 14:44:19 +01:00
Bastien Bouclet
cf1ebf2951 ENGINES: Add unknown game variants to the game detector results 2018-05-10 09:04:23 +02:00
Lothar Serra Mari
451cf2304f ENGINES: Show the unknown Game dialog only when the detector is launched by the Add Game feature 2018-04-29 21:47:10 +01:00
Adrian Frühwirth
00e59a3122 ALL: Load savegame thumbnail only when necessary
This commit introduces the following changes:

1. Graphics::loadThumbnail()

   Now returns a boolean and takes a new argument skipThumbnail which
   defaults to false. In case of true, loadThumbnail() reads past the
   thumbnail data in the input stream instead of actually loading the
   thumbnail. This simplifies savegame handling where, up until now,
   many engines always read the whole savegame metadata (including
   the thumbnail) and then threw away the thumbnail when not needed
   (which is in almost all cases, the most common exception being
   MetaEngine::querySaveMetaInfos() which is responsible for loading
   savegame metadata for displaying it in the GUI launcher.

2. readSavegameHeader()

   Engines which already implement such a method (name varies) now take
   a new argument skipThumbnail (default: true) which is passed
   through to loadThumbnail(). This means that the default case for
   readSavegameHeader() is now _not_ loading the thumbnail from a
   savegame and just reading past it. In those cases, e.g.
   querySaveMetaInfos(), where we actually are interested in loading
   the thumbnail readSavegameHeader() needs to explicitely be called
   with skipThumbnail == false.

   Engines whose readSavegameHeader() (name varies) already takes an
   argument loadThumbnail have been adapted to have a similar
   prototype and semantics.
   I.e. readSaveHeader(in, loadThumbnail, header) now is
   readSaveHeader(in, header, skipThumbnail).

3. Error handling

   Engines which previously did not check the return value of
   readSavegameHeader() (name varies) now do so ensuring that possibly
   broken savegames (be it a broken thumbnail or something else) don't
   make it into the GUI launcher list in the first place.
2018-04-07 09:26:20 +02:00
Walter van Niftrik
0300979bdd ADL: Add support for another hires1 variant 2018-02-04 16:15:10 +01:00
Walter van Niftrik
bdda3447a3 ADL: Add support for an early hires1 version 2018-02-03 23:36:18 +01:00
Walter van Niftrik
9e5b54ddc8 ADL: Remove unused array terminator 2018-02-02 23:38:52 +01:00
Walter van Niftrik
236e5da6cc ADL: Fix build error 2018-02-02 22:53:00 +01:00
Walter van Niftrik
aba2961899 ADL: Refactor NIB image error handling 2018-02-02 22:18:25 +01:00
Walter van Niftrik
b497ec3065 ADL: Implement new detection method for disk images 2018-02-02 22:18:25 +01:00