Commit Graph

1088 Commits

Author SHA1 Message Date
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
Willem Jan Palenstijn
9543231685 replace ensureCapacity(_len-1) by ensureCapacity(_len) (fixes bug #1617410)
svn-id: r24865
2006-12-17 19:41:41 +00:00
Gregory Montoir
b2fb23a134 Changed the way String::_storage is initialised, to help GCC 2.95 (see tracker item #1602879)
svn-id: r24793
2006-11-27 00:51:14 +00:00
Max Horn
5c8de9b3b0 Replaced #ifdef hack in the HashMap code by a much nicer and cleaner 'friend class' statement (a similar change might be possible in class List)
svn-id: r24791
2006-11-26 22:39:34 +00:00
Eugene Sandulenko
cfb29dcb51 Fix MSVC2005 warnings. Please, review the changes.
svn-id: r24760
2006-11-22 15:50:30 +00:00
Eugene Sandulenko
cad15161a5 Disable yet another MSVC warning
svn-id: r24758
2006-11-22 13:40:32 +00:00
Travis Howell
cc8653604e Fix compile
svn-id: r24716
2006-11-13 22:42:24 +00:00
Max Horn
cce7cba3b4 Patch #1583931: (Seekable)SubReadStream
svn-id: r24713
2006-11-13 20:58:21 +00:00
Max Horn
86d988132c Prepend the Engine::errorString to debug messages, too (it should probably be renamed to reflect this...)
svn-id: r24712
2006-11-13 20:56:11 +00:00
Eugene Sandulenko
3e6414a55f Slighty modified Patch #1571787: "Support for Mac Broken Sword 1". sword1macdemo
target was commented out until existence of the demo is confirmed.

svn-id: r24697
2006-11-12 19:05:51 +00:00
Max Horn
1f26cb8965 Reworked code in the advanced game detector (getting rid of much of the evil #define hell it consisted of previously)
svn-id: r24685
2006-11-12 03:23:29 +00:00
Eugene Sandulenko
3c7cb08db5 Fix regression in AGOS engine detector
svn-id: r24671
2006-11-10 23:16:23 +00:00
Eugene Sandulenko
a977988058 Next step in AdvancedDetector unification. Moved all common functions to
macroses. Now typical usage is just list of macros with parameters and 
array of game details.

svn-id: r24670
2006-11-10 22:43:10 +00:00
Gregory Montoir
c71e6599bc added translation method to Common::Rect
svn-id: r24591
2006-11-03 21:04:10 +00:00
Gregory Montoir
f9cf368a67 got rid of two memory leaks
svn-id: r24589
2006-11-03 21:01:49 +00:00
Chris Apers
8ad806535a Not required anymore
svn-id: r24561
2006-10-28 14:40:43 +00:00
Max Horn
7889783cac const correctness
svn-id: r24488
2006-10-24 09:44:20 +00:00
Max Horn
07f7761479 Backend modularization: Create timer manager, savefile manager and audio mixer in the backends for increased flexibility
svn-id: r24443
2006-10-22 15:42:29 +00:00
Max Horn
f95f5ed133 Added OSystem::getTimerManager and OSystem::getMixer methods (wip)
svn-id: r24405
2006-10-21 12:03:43 +00:00
Max Horn
1a086279b2 Added Point::sqrDist method to (safely) compute the square of the distance between two points
svn-id: r24370
2006-10-18 14:48:51 +00:00
Travis Howell
3559fcba43 Revert
svn-id: r24303
2006-10-14 03:15:35 +00:00
Travis Howell
05baf18ad6 Fix introduction of WW
svn-id: r24302
2006-10-14 03:14:47 +00:00
Johannes Schickel
d65e7826fd Fixes compiling for me with g++ (GCC) 4.1.2 20061007 (prerelease) (Debian 4.1.1-16) on amd64.
svn-id: r24298
2006-10-13 20:18:27 +00:00
Kostas Nakos
4524b49872 Initial commit of the wince-gcc re-port
svn-id: r24212
2006-10-08 18:15:18 +00:00
Max Horn
dca237598b Added a const qualifier inside struct ADGameDescription (rule of thumb: Make as many pointers and members const as possible, it helps prevent bugs, and potentially helps the optimizer)
svn-id: r24181
2006-10-08 00:20:44 +00:00
Eugene Sandulenko
3d84f11046 Patch #1432376: "Very basic GP2X Backend"
svn-id: r24144
2006-10-06 19:01:39 +00:00