aboutsummaryrefslogtreecommitdiff
path: root/common/advancedDetector.cpp
AgeCommit message (Collapse)Author
2007-03-08added a flag to enable/disable printing a warning when filename based ↵Gregory Montoir
detection find a match, also updated some comments. svn-id: r26029
2007-02-18Improved (I hope) the 'Unknown MD5' messages in our detectors a little bitMax Horn
svn-id: r25695
2007-02-14AdvancedDetector: revamped the file based fallback codeMax Horn
svn-id: r25599
2007-02-14Make use of md5_file_stringMax Horn
svn-id: r25593
2007-02-14Some more cleanup, and that's it for tonightMax Horn
svn-id: r25580
2007-02-14Minor cleanupMax Horn
svn-id: r25579
2007-02-14Added some comments and performed some cleanup in the file based fallback ↵Max Horn
code of the AdvancedDetector svn-id: r25578
2007-02-14Properly implemented the AD fallback callbackMax Horn
svn-id: r25576
2007-02-13Since detectBestMatchingGame now returns a ADGameDescription pointer, we can ↵Max Horn
change detectGame to return a ADGameDescList svn-id: r25575
2007-02-13Changed detectBestMatchingGame to return a pointer to a ADGameDescription ↵Max Horn
(or a subclass of it); added a (currently fake) fallback callback entry in ADParams svn-id: r25574
2007-02-13Some more AdvancedDetector cleanup: Removed kADFlagFilebasedFallback flag ↵Max Horn
(just check whether a fileBasedFallback has been provided); moved some internal definitions, added some doxygen coments, etc. svn-id: r25570
2007-02-13Thanks to the previous changes, we can now cleanup ↵Max Horn
detectGameForEngineCreation somewhat svn-id: r25548
2007-02-13AdvancedDetector changes:Max Horn
* Renamed genGameList to gameIDList to make it match the corresponding plugin API function name * removed the detectFunc param from detectGameForEngineCreation, as it *always* pointed to a straight wrapper around AdvancedDetector::detectAllGames * as a consequence, removed the various GAME_detectGames functions from the engines, and removed the detectFunc param from ADVANCED_DETECTOR_DEFINE_PLUGIN svn-id: r25547
2007-02-13Rename Common::GF_XXX to Common::ADGF_XXXEugene Sandulenko
svn-id: r25545
2007-02-13Renamed generateComplexID to generatePreferredTarget to match my previous commitMax Horn
svn-id: r25544
2007-02-13Renamed kADFlagComplexID to kADFlagAugmentPreferredTarget, document it, and ↵Max Horn
add it for AGOS, too svn-id: r25543
2007-02-13Moved detectGameForEngineCreation next to detectBestMatchingGame (somebody ↵Max Horn
should explain the difference between the two...) svn-id: r25542
2007-02-13Use GF_DEMO flag in the AdvancedDetector to augment the preferredtarget nameMax Horn
svn-id: r25541
2007-02-09cleanupMax Horn
svn-id: r25452
2007-02-05Only do the file based fallback when no matches by MD5s were foundSven Hesse
svn-id: r25394
2007-02-04AdvancedDetector now has built-in fallback detection based on file lists.Eugene Sandulenko
Currently only gob engine benefits from it. svn-id: r25374
2007-01-30- Fixed bug with single ID detectionEugene Sandulenko
- Added more debug output svn-id: r25273
2007-01-29Now AdvancedDetector could use single ID per engine. Also it can suggestEugene Sandulenko
more complex game IDs with platform and language specified. AGI engine benefits most from that. Also turned Cine, Parallaction and SAGA to single ID, autoupgrading old ID. svn-id: r25269
2007-01-25Lots of cleanup in the AdvancedDetectorMax Horn
svn-id: r25194
2007-01-25cleanupMax Horn
svn-id: r25179
2007-01-25Removed getDescription() functionMax Horn
svn-id: r25177
2007-01-25Print out file size for unmatched files. Also alter output slighty.Eugene Sandulenko
svn-id: r25175
2007-01-25Removed class AdvancedDetectorMax Horn
svn-id: r25174
2007-01-25Use file sizes in detection too.Eugene Sandulenko
svn-id: r25172
2007-01-24Hide all AdvacedDetector parameters into a structure for easier maintenanceEugene Sandulenko
and extensibility svn-id: r25163
2007-01-20First phase of detection-related plugins interface improvements. Now pluginsEugene Sandulenko
return StringMap instead of fixed list of parameters. This adds great flexibility. Current patch should not alter any functionality, i.e. if there are regressions, submit a report. Phase 2 will benefit from these changes and will come later. svn-id: r25134
2006-12-20Stripped some more real_ prefixes from function names; also added a new ↵Max Horn
FIXME comment to Kyra's setupGameFlags, and did some more cleanup svn-id: r24899
2006-12-19Properly walk through lists of (extended) ADGameDescriptions -- we ↵Max Horn
previously only checked the first byte, which 'often' worked fine on little endian machines, but almost never worked correct on big endian ones svn-id: r24897
2006-12-19Renamed real_ADVANCED_DETECTOR_DETECT_GAMES_FUNCTION to ↵Max Horn
ADVANCED_DETECTOR_DETECT_GAMES_FUNCTION, and real_ADVANCED_DETECTOR_DETECT_INIT_GAME to ADVANCED_DETECTOR_DETECT_INIT_GAME svn-id: r24896
2006-12-19Further AdvancedDetector cleanup (in particular, renamed ↵Max Horn
ADGameDescription::name to the more suitable ADGameDescription::gameid) svn-id: r24895
2006-12-19* Simplified code in AdvancedDetector::detectGameMax Horn
* Removed AdvancedDetector::setFileMD5Bytes, now AdvancedDetector::detectGame simply takes the MD5 byte limit as an extra parameter svn-id: r24894
2006-12-19* Change the GameList typedef to a proper class with an additionalMax Horn
constructor which takes a PlainGameDescriptor 'list' * Replaced real_ADVANCED_DETECTOR_GAMEID_LIST by this new constructor * Removed ADVANCED_DETECTOR_GAMEID_LIST and ADVANCED_DETECTOR_FIND_GAMEID * Some minor cleanup svn-id: r24893
2006-12-19Fix compiler warning (in general, NULL is deprecated in C++ -- just use 0 ↵Max Horn
instead) svn-id: r24885
2006-12-19Get rif od ARRAYSIZE in ADGameDescriptionEugene Sandulenko
svn-id: r24882
2006-12-19Got rid of ARRAYSIZE in advanceDetector callsEugene Sandulenko
svn-id: r24881
2006-11-12Reworked code in the advanced game detector (getting rid of much of the evil ↵Max Horn
#define hell it consisted of previously) svn-id: r24685
2006-11-10Next step in AdvancedDetector unification. Moved all common functions toEugene Sandulenko
macroses. Now typical usage is just list of macros with parameters and array of game details. svn-id: r24670
2006-11-03got rid of two memory leaksGregory Montoir
svn-id: r24589
2006-10-24const correctnessMax Horn
svn-id: r24488
2006-10-08Added a const qualifier inside struct ADGameDescription (rule of thumb: Make ↵Max Horn
as many pointers and members const as possible, it helps prevent bugs, and potentially helps the optimizer) svn-id: r24181
2006-10-02Moved unrelated fields out of ADGameDescription structure.Eugene Sandulenko
svn-id: r24090
2006-10-02Unify SAGA/AGOS detection code so other engines could also reuse itEugene Sandulenko
without further code duplication. svn-id: r24083