aboutsummaryrefslogtreecommitdiff
path: root/common/advancedDetector.h
AgeCommit message (Collapse)Author
2007-03-08removed kADFlagFilebasedFallback, this flag is never used (and filename ↵Gregory Montoir
based detection is done if fileBasedFallback is non-0 anyway) svn-id: r26032
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-14AdvancedDetector: revamped the file based fallback codeMax Horn
svn-id: r25599
2007-02-14Properly implemented the AD fallback callbackMax Horn
svn-id: r25576
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-13Kill MSVC warning:Eugene Sandulenko
warning C4245: 'initializing' : conversion from 'Common::ADGameFlags' to 'uint32', signed/unsigned mismatch svn-id: r25557
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 kADFlagComplexID to kADFlagAugmentPreferredTarget, document it, and ↵Max Horn
add it for AGOS, too svn-id: r25543
2007-02-13(re)added flags field to ADGameDescription, with currently only one value ↵Max Horn
(GF_DEMO) -- this flag value is not yet used by anything (also, GF_DEMO hasn't been correctly set for AGI games yet) svn-id: r25539
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-30warningsGregory Montoir
svn-id: r25284
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-28Gregory's patch for bug #1645653 ("MSVC71 BUILD: Latest SVN doesn't compile").Johannes Schickel
svn-id: r25251
2007-01-28Add more paramteres to AdvancedDetector. Not used yet.Eugene Sandulenko
svn-id: r25241
2007-01-25Lots of cleanup in the AdvancedDetectorMax Horn
svn-id: r25194
2007-01-25At this time, ADVANCED_DETECTOR_DEFINE_PLUGIN doesn't take a factory ↵Max Horn
function, but rather only a simple class name (one of the reasons it can't be used by the Kyra code right now) svn-id: r25176
2007-01-25Removed class AdvancedDetectorMax Horn
svn-id: r25174
2007-01-25Mention that some fields in ADGameFileDescription are optional.Eugene Sandulenko
In fact we really need to write some documentation for it. svn-id: r25173
2007-01-24Correcting doc commentMax Horn
svn-id: r25168
2007-01-24Corrected a commentMax Horn
svn-id: r25166
2007-01-24Add optional size parameter to ADGameFileDescription. Not used now.Eugene Sandulenko
svn-id: r25164
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-29Make ADGameFileDescription is built in directly into ADGameDescription.Eugene Sandulenko
svn-id: r24947
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-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-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-10Fix regression in AGOS engine detectorEugene Sandulenko
svn-id: r24671
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-02Doxygen compliance fixMax Horn
svn-id: r24087
2006-10-02Unify SAGA/AGOS detection code so other engines could also reuse itEugene Sandulenko
without further code duplication. svn-id: r24083