Max Horn
433e7d69ac
Thanks to the previous changes, we can now cleanup detectGameForEngineCreation somewhat
...
svn-id: r25548
2007-02-13 15:03:43 +00:00
Max Horn
4968e912ce
AdvancedDetector changes:
...
* 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-13 14:55:11 +00:00
Eugene Sandulenko
da7d8c9f35
Rename Common::GF_XXX to Common::ADGF_XXX
...
svn-id: r25545
2007-02-13 13:42:28 +00:00
Max Horn
731f1017c1
Renamed generateComplexID to generatePreferredTarget to match my previous commit
...
svn-id: r25544
2007-02-13 13:19:43 +00:00
Max Horn
2afe07992f
Renamed kADFlagComplexID to kADFlagAugmentPreferredTarget, document it, and add it for AGOS, too
...
svn-id: r25543
2007-02-13 13:17:46 +00:00
Max Horn
287e21d36e
Moved detectGameForEngineCreation next to detectBestMatchingGame (somebody should explain the difference between the two...)
...
svn-id: r25542
2007-02-13 13:04:51 +00:00
Max Horn
55e132ca7d
Use GF_DEMO flag in the AdvancedDetector to augment the preferredtarget name
...
svn-id: r25541
2007-02-13 13:00:18 +00:00
Max Horn
55adc889e7
(re)added flags field to ADGameDescription, with currently only one value (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-13 01:28:18 +00:00
Max Horn
16a2940808
cleanup
...
svn-id: r25452
2007-02-09 17:57:49 +00:00
Sven Hesse
193349fd60
Only do the file based fallback when no matches by MD5s were found
...
svn-id: r25394
2007-02-05 14:22:10 +00:00
Max Horn
4e9e88ac1c
Added Common::getEnabledSpecialDebugLevels
...
svn-id: r25383
2007-02-04 13:28:17 +00:00
Eugene Sandulenko
7b6bdd231d
AdvancedDetector now has built-in fallback detection based on file lists.
...
Currently only gob engine benefits from it.
svn-id: r25374
2007-02-04 03:10:27 +00:00
Max Horn
73c3625f1f
Fixing various doxygen warnings
...
svn-id: r25362
2007-02-03 21:37:52 +00:00
Gregory Montoir
7e5a0b05b5
warnings
...
svn-id: r25284
2007-01-30 20:20:05 +00:00
Eugene Sandulenko
9833a65d4c
- Fixed bug with single ID detection
...
- Added more debug output
svn-id: r25273
2007-01-30 02:02:10 +00:00
Eugene Sandulenko
adcfd2cc5f
Now AdvancedDetector could use single ID per engine. Also it can suggest
...
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-29 23:25:51 +00:00
Johannes Schickel
7da1a56387
Gregory's patch for bug #1645653 ("MSVC71 BUILD: Latest SVN doesn't compile").
...
svn-id: r25251
2007-01-28 23:24:16 +00:00
Max Horn
8b7fdca4ac
Return a default value in the const-variant of HashMap::getVal, instead of asserting out -- this way, we get less unexpected asserts, and both getVal variants behave comparably diff. The drawback is that now all HashMap instances carry one extra Value object around with them.
...
svn-id: r25245
2007-01-28 13:30:26 +00:00
Eugene Sandulenko
93687d376b
Add more paramteres to AdvancedDetector. Not used yet.
...
svn-id: r25241
2007-01-28 07:31:26 +00:00
Eugene Sandulenko
4c83151404
Fix typo spotted by clone2727
...
svn-id: r25236
2007-01-27 23:50:09 +00:00
Max Horn
d70c83bd4b
Lots of cleanup in the AdvancedDetector
...
svn-id: r25194
2007-01-25 21:16:57 +00:00
Max Horn
85dc27db2f
cleanup
...
svn-id: r25179
2007-01-25 01:07:59 +00:00
Max Horn
0314bfdb94
Removed getDescription() function
...
svn-id: r25177
2007-01-25 01:01:01 +00:00
Max Horn
521c7a0d09
At this time, ADVANCED_DETECTOR_DEFINE_PLUGIN doesn't take a factory 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-25 00:51:32 +00:00
Eugene Sandulenko
c92f2ec212
Print out file size for unmatched files. Also alter output slighty.
...
svn-id: r25175
2007-01-25 00:47:35 +00:00
Max Horn
9dada67e5a
Removed class AdvancedDetector
...
svn-id: r25174
2007-01-25 00:43:35 +00:00
Eugene Sandulenko
5f91f6d1e5
Mention that some fields in ADGameFileDescription are optional.
...
In fact we really need to write some documentation for it.
svn-id: r25173
2007-01-25 00:38:36 +00:00
Eugene Sandulenko
6eb9f41e68
Use file sizes in detection too.
...
svn-id: r25172
2007-01-25 00:37:12 +00:00
Max Horn
6a004d6b3c
Correcting doc comment
...
svn-id: r25168
2007-01-24 23:28:03 +00:00
Max Horn
3a74dedb57
Corrected a comment
...
svn-id: r25166
2007-01-24 22:57:40 +00:00
Eugene Sandulenko
318210ad96
Add optional size parameter to ADGameFileDescription. Not used now.
...
svn-id: r25164
2007-01-24 22:42:44 +00:00
Eugene Sandulenko
edd2422a55
Hide all AdvacedDetector parameters into a structure for easier maintenance
...
and extensibility
svn-id: r25163
2007-01-24 22:24:52 +00:00
Max Horn
0c148fc44e
Added non-const variant of HashMap::getVal
...
svn-id: r25136
2007-01-21 00:11:45 +00:00
Max Horn
12476efb58
Added some new HashMap methods: lookupAndCreateIfMissing (internal only), setVal and getVal (which actually is just the old queryVal renamed for consistency)
...
svn-id: r25135
2007-01-21 00:06:50 +00:00
Eugene Sandulenko
cd8a5f3a98
First phase of detection-related plugins interface improvements. Now plugins
...
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
2007-01-20 21:27:57 +00:00
Max Horn
d1b97e6786
Added copy constructor and assignment operator to class HashMap
...
svn-id: r25125
2007-01-19 21:55:45 +00:00
Paweł Kołodziejski
964b95ccf0
keep warnings off like this ones:
...
- warning C4610: struct 'Agi::AGIGameDescription' can never be instantiated - user defined constructor required
- warning C4510: 'Saga::SAGAGameDescription' : default constructor could not be generated
Can someone help me how to fix this ?
svn-id: r25088
2007-01-15 08:21:20 +00:00
Chris Apers
efe466040a
Still doesn't work with PalmOS compiler
...
svn-id: r25079
2007-01-14 11:06:34 +00:00
Eugene Sandulenko
c01839bbe9
Make ADGameFileDescription is built in directly into ADGameDescription.
...
svn-id: r24947
2006-12-29 00:03:03 +00:00
Max Horn
f54b935500
Tweaked the FixedStack class a bit
...
svn-id: r24926
2006-12-25 23:13:13 +00:00
Max Horn
6eef02245c
Stripped some more real_ prefixes from function names; also added a new FIXME comment to Kyra's setupGameFlags, and did some more cleanup
...
svn-id: r24899
2006-12-20 00:08:51 +00:00
Max Horn
e0ee3fd06d
Properly walk through lists of (extended) ADGameDescriptions -- we 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-19 23:58:45 +00:00
Max Horn
559f2b62eb
Renamed real_ADVANCED_DETECTOR_DETECT_GAMES_FUNCTION to ADVANCED_DETECTOR_DETECT_GAMES_FUNCTION, and real_ADVANCED_DETECTOR_DETECT_INIT_GAME to ADVANCED_DETECTOR_DETECT_INIT_GAME
...
svn-id: r24896
2006-12-19 23:57:04 +00:00
Max Horn
07c6fa980f
Further AdvancedDetector cleanup (in particular, renamed ADGameDescription::name to the more suitable ADGameDescription::gameid)
...
svn-id: r24895
2006-12-19 23:37:03 +00:00
Max Horn
2969144120
* Simplified code in AdvancedDetector::detectGame
...
* Removed AdvancedDetector::setFileMD5Bytes, now AdvancedDetector::detectGame
simply takes the MD5 byte limit as an extra parameter
svn-id: r24894
2006-12-19 23:14:15 +00:00
Max Horn
865d8717a3
* Change the GameList typedef to a proper class with an additional
...
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-19 22:43:15 +00:00
Max Horn
0d1f78e4be
Fix compiler warning (in general, NULL is deprecated in C++ -- just use 0 instead)
...
svn-id: r24885
2006-12-19 12:21:23 +00:00
Eugene Sandulenko
457ebfea3c
Get rif od ARRAYSIZE in ADGameDescription
...
svn-id: r24882
2006-12-19 04:35:08 +00:00
Eugene Sandulenko
18ce381060
Got rid of ARRAYSIZE in advanceDetector calls
...
svn-id: r24881
2006-12-19 03:52:04 +00:00
Stuart George
6c46f3ba26
Added Apple IIgs as machine type for AGI engine
...
svn-id: r24876
2006-12-19 01:06:45 +00:00