Commit Graph

75 Commits

Author SHA1 Message Date
Johannes Schickel
e515fc18db ENGINES: Make variable names of PlainGameDescriptor conform to our guidelines.
gameid -> gameId
2016-03-08 19:01:42 +01:00
Johannes Schickel
3aecd8ef2a ENGINES: Make variable names of ADGameDescription conform to our guidelines.
gameid     -> gameId
guioptions -> guiOptions
2016-03-08 19:01:38 +01:00
Johannes Schickel
0b6befdcc5 ENGINES: Make variable names of AdvancedMetaEngine conform to our guidelines.
_singleid   -> _singleId
_gameids    -> _gameIds
_guioptions -> _guiOptions
2016-03-08 19:01:13 +01:00
Johannes Schickel
3ec225f127 ENGINES: Fix formatting. 2016-03-08 18:23:04 +01:00
Eugene Sandulenko
86592b82a5 AD: Remove leftover debug messages 2016-03-07 20:48:13 +01:00
Eugene Sandulenko
0463b787e1 AD: Added new flag for autogenerating game target from extra information 2016-03-07 19:00:37 +01:00
Filippos Karapetis
672a46b84f DETECTOR: Do not show the zero matched size for illegitimate copies 2014-08-06 15:08:57 +03:00
Johannes Schickel
53e83147be ENGINES: Make GPL headers consistent in themselves. 2014-02-18 02:39:34 +01:00
Eugene Sandulenko
6384cfdeaa AD: Introduce ADGF_DROPPLATFORM 2013-09-09 00:38:06 +03:00
Matthew Hoops
4a7e4e5b22 ALL: Don't use EventRecorder at all when not compiled in 2013-07-06 23:54:45 -04:00
Eugene Sandulenko
f59512c47e RECORDER: Implement Events Recorder 2013-05-17 00:18:09 +03:00
Matthew Hoops
0031c41db8 COMMON: Change kPlatformPC to kPlatformDOS
"PC" was very ambiguous and now it matches what we show in the GUI.

This also corrects sword2's platform to Windows.
2013-05-02 18:43:10 -04:00
Sven Hesse
9e7ece4ebe DETECTOR: Make reportUnknown() available for AdvancedMetaEngine classes to use 2012-06-27 05:14:18 +02:00
Sven Hesse
2c760cb15e DETECTOR: Make detectGameFilebased() return a list of MD5s and file sizes
Since we need a FSNode parent for Mac resource forks, we need to change
signature of detectGameFilebased(), too.
2012-06-27 05:14:18 +02:00
Sven Hesse
63e13c5d2c DETECTOR: Move size reading and MD5 creating into a new method getFileProperties() 2012-06-27 05:14:18 +02:00
Sven Hesse
5ca480aa2e DETECTOR: Move ADFileProperties(Map) into advancedDetector.h 2012-06-27 05:14:18 +02:00
Sven Hesse
7691542496 DETECTOR: Rename SizeMD5(Map) to ADFileProperties(Map) 2012-06-27 05:14:18 +02:00
Filippos Karapetis
6a49d3eadd ENGINES: Return all available custom GUI options if no target is specified
This is used to set default settings for all custom game options when an
engine starts
2012-03-31 13:55:03 +03:00
Johannes Schickel
82ab3056fa ENGINES: Implement per-game options caching in AdvancedDetector via GUIO flags. 2012-03-19 21:04:29 +01:00
Eugene Sandulenko
77c65648b1 AD: Swtich GUI options to a char array.
This eliminates nasty limitation of caping number of flags to 31.
Current code has limitation of 255 flags, though.

Only SCUMM engine is converted, rest do not even compile.
Detection of fan talkie MI is broken as it has to be implemented
differently.
2011-10-23 17:53:13 +01:00
Alyssa Milburn
2ffdd0d3b7 COMMON: Include hidden files in FSDirectory cache and detection.
The cache issue has been discussed before, it breaks accessing files
beginning with a dot on POSIX. The change to the advancedDetector
to see hidden files was suggested by AdamRi on IRC.
2011-10-08 14:36:34 +02:00
Tarek Soliman
4d0bba314d ENGINES: Warn user about games marked with ADGF_UNSTABLE flags
ADGF_UNSTABLE is always warned about.
ADGF_TESTING is only warned about when running
configure with --enable-relase.

Both warnings are subject to the enable_wip_game_warning
config option.
2011-06-16 13:37:13 -05:00
Max Horn
d9a996e6ef DETECTOR: Change ADFileBasedFallback::desc to ADGameDescription pointer 2011-06-14 18:52:12 +02:00
Max Horn
5016645345 DETECTOR: Remove kADFlagPrintWarningOnFileBasedFallback 2011-06-14 18:52:11 +02:00
Max Horn
01f806c2db DETECTOR: Treat file based fallback like any other fallback method 2011-06-14 18:52:11 +02:00
Max Horn
879c3c7817 DETECTOR: Pass allFiles to AdvancedMetaEngine::fallbackDetect()
Also reorder the parameters of composeFileHashMap, placing the "return value"
first.
2011-06-14 18:52:11 +02:00
Max Horn
64e523141f DETECTOR: Change detectGameFilebased return value 2011-06-14 18:52:10 +02:00
Max Horn
0686204792 DETECTOR: cleanup 2011-06-14 18:52:10 +02:00
Max Horn
49a1ea1789 DETECTOR: Cleanup, extend doxygen comments 2011-06-14 18:52:09 +02:00
Max Horn
593b929047 DETECTOR: Separate code for handling obsolete gameids from advanced detector
This includes a renaming of ADObsoleteGameID to Engine::ObsoleteGameID,
and AdvancedDetector::findGameID now is Engines::findGameID.

Doxygen comments were added or improved
2011-06-14 18:52:07 +02:00
Max Horn
7c992d6598 DETECTOR: Merge ADParams into AdvancedMetaEngine 2011-06-14 18:17:01 +02:00
Max Horn
eea6f69b59 DETECTOR: Turn some internal func of AdvancedMetaEngine into methods
The eventual goal here is to make it easier (well, *possible*) for
subclasses to modify the detector behavior, e.g. to implement
custom fallback detection.
One immediate goal could be to move the filebased fallback detector
into a subclass.
2011-06-10 22:15:48 +02:00
Max Horn
d46bfff066 DETECTOR: Make updateGameDescriptor a method of AdvancedMetaEngine 2011-06-10 22:15:46 +02:00
Max Horn
b7d9e433bf DETECTOR: Add AdvancedMetaEngine constructor which works without ADParams 2011-06-10 22:15:40 +02:00
Max Horn
252a505db2 DETECTOR: Allocate MacResManager on the stack 2011-06-10 22:15:39 +02:00
Alyssa Milburn
b2a1566860 DETECTOR: Change printf calls to use logMessage.
Also make the strings translatable.
2011-06-06 12:32:09 +02:00
Max Horn
48dac6ab7f DETECTOR: Clarify warning a bit 2011-06-01 16:44:35 +02:00
Max Horn
136ffb5e0a DETECTOR: Get rid of unused kADFlagDontAugmentPreferredTarget
It doesn't seem very useful to keep this around for future uses,
either, at least I couldn't think of a convincing argument.
If we really need something like this one day again, it is trivial
enough to add it back.
2011-06-01 16:44:35 +02:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Max Horn
59e77ed667 ALL: Mark printf and various other symbols as forbidden
Right now, a few places in the frontend code still use printf and
consorts. We mark the affected files with a FIXME for now, and
add a dedicated exception for each. To be fixed!

Also tweak FORBIDDEN_SYMBOL_REPLACEMENT to hopefully really always
enforce a compiler error
2011-05-02 16:31:31 +02:00
Ori Avtalion
9414d7a6e2 JANITORIAL: Reduce header dependencies in shared code
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Matthew Hoops
2be57434a1 COMMON: Only take the md5 of the resource fork data section
Since various apps can modify the type/creator of the files, we can't rely on the header of the resource fork to take the md5. I've therefore also recalculated all of the detector entries (all 5 of them) that use the Mac resource fork code.

svn-id: r55764
2011-02-04 15:27:56 +00:00
Max Horn
4d3a07b494 COMMON: Rename and tweak MD5 functions
* names now comply to our naming conventions
* the function computeStreamMD5AsString which computes the MD5
  as a hex string now returns it as a Common::String
* add doxygen comments

svn-id: r54121
2010-11-07 17:16:59 +00:00
Max Horn
036e88d382 DETECTOR: Don't compute mac resource fork MD5 of a file multiple times
Also add a FIXME regarding the fact that we don't handle the case that a
file is listed as a regular file and as one with resource fork.

svn-id: r54120
2010-11-07 17:16:01 +00:00
Max Horn
c5598664ce DETECTOR: Get rid of ADGF_KEEPMATCH
Also fix some typos, and minor tweaks

svn-id: r54118
2010-11-07 17:15:27 +00:00
Max Horn
c975ed11a1 ALL: Fix various typos (patch #3093266)
svn-id: r53762
2010-10-24 13:04:33 +00:00
Jordi Vilalta Prat
8388e0dfea JANITORAL: Clean trailing whitespaces.
svn-id: r53160
2010-10-12 02:18:11 +00:00
Johannes Schickel
4135dc7a7c AD: Fix infinite loop in cleanupPirated.
svn-id: r52386
2010-08-25 12:03:43 +00:00
Eugene Sandulenko
78278db7ed AD: Implement AGDF_PIRATED flag.
svn-id: r52384
2010-08-25 11:51:06 +00:00
Eugene Sandulenko
1d7566f371 AD: Print out infromation about unknown version in better format
Now it is suitable for direct copy/pasting into detection tables.

svn-id: r52383
2010-08-25 11:50:23 +00:00