Commit Graph
4144 Commits
Author SHA1 Message Date
Max Horn 33a4f8c378 Changed ConfigManager to use class File instead of std C I/O to write the config file
svn-id: r26016
2007-03-08 16:43:33 +00:00
Max Horn f02802531e Turning FilesystemNode comment into a doxygen comment
svn-id: r26015
2007-03-08 15:02:13 +00:00
Max Horn 8a80e2284a Removing _ptrOrig (hi Torbjorn, have fun recompiling)
svn-id: r25980
2007-03-04 16:25:27 +00:00
Max Horn 43cd428355 Some HashMap cleanup:
* Removed the odd return value of method erase()
* Stopped erase() from leaking (oops!)
* Added a (paranoia) consistency check to assign()

svn-id: r25967
2007-03-04 09:58:04 +00:00
Max Horn b25c7933a5 Paranoia: a hashmap node must never ever change its key after its creation
svn-id: r25965
2007-03-04 09:27:28 +00:00
Travis Howell b0fea397ab Allow PC Engine version of Loom to at least start up.
svn-id: r25951
2007-03-03 12:59:48 +00:00
Max Horn 4efda86d7a Removed File::incRef and decRef
svn-id: r25920
2007-03-01 17:25:49 +00:00
Max Horn dea688d0f5 Fix spelling
svn-id: r25908
2007-02-28 14:07:47 +00:00
Max Horn 2cbe50c5ec Typo
svn-id: r25861
2007-02-25 19:08:57 +00:00
Max Horn 198f32ea8e Add some doxygen comments to Common::Stream
svn-id: r25859
2007-02-25 18:35:51 +00:00
Max Horn 7287ce2a4c Typo
svn-id: r25858
2007-02-25 18:26:33 +00:00
Max Horn 42f11e9e49 Added new ReadStream::readStream method which can be used to read a portion of an arbitrary ReadStream into a memory buffer wrapped by a MemoryReadStream
svn-id: r25754
2007-02-20 21:41:01 +00:00
Max Horn fb9c08f101 Removed XORReadStream (it was unused); enhanced MemoryReadStream to be able to dispose the memory block it wraps (simplifies memory management)
svn-id: r25748
2007-02-20 17:52:02 +00:00
Max Horn 7290d1b18c Enhance (Seekable)SubReadStream so be able to (optionally) dispose the parent stream after it's been used (simplifies memory management for client code)
svn-id: r25732
2007-02-19 21:11:13 +00:00
Max Horn e0a7c6d7a7 Made it possible to init a Stack<T> with an Array<T>; removed hack in Stack<T>::top
svn-id: r25696
2007-02-18 18:08:38 +00:00
Max Horn 348b72e107 Improved (I hope) the 'Unknown MD5' messages in our detectors a little bit
svn-id: r25695
2007-02-18 18:07:32 +00:00
Chris Apers 5b214090f7 Renamed crc32 which conflicts with Tapwave system function
svn-id: r25692
2007-02-18 17:47:24 +00:00
Max Horn e326f482c9 Get rid of Common::SaveFile
svn-id: r25666
2007-02-17 22:11:00 +00:00
Max Horn b8aeefaffb Added finalize() method to Common::OutSaveFile (which by default just flushes the stream), changed engines to call that before deleting OutSaveFile instances (instead of just flushing)
svn-id: r25660
2007-02-17 18:55:51 +00:00
Max Horn ec27c53491 AdvancedDetector: revamped the file based fallback code
svn-id: r25599
2007-02-14 23:46:39 +00:00
Max Horn 62bd2a1544 Make use of md5_file_string
svn-id: r25593
2007-02-14 21:59:57 +00:00
Max Horn 80f799a2b2 Extended MD5 API a bit: added a variant of md5_file which takes an arbitrary ReadStream; and added md5_file_string methods which directly produce a human readable md5 string (instead of a binary digest)
svn-id: r25592
2007-02-14 21:43:21 +00:00
Max Horn 42631d21b1 Some more cleanup, and that's it for tonight
svn-id: r25580
2007-02-14 00:52:12 +00:00
Max Horn 6b2ff5616b Minor cleanup
svn-id: r25579
2007-02-14 00:38:45 +00:00
Max Horn 265deaffff Added some comments and performed some cleanup in the file based fallback code of the AdvancedDetector
svn-id: r25578
2007-02-14 00:37:02 +00:00
Max Horn 75ae7cdb73 Properly implemented the AD fallback callback
svn-id: r25576
2007-02-14 00:21:53 +00:00
Max Horn 59b1526e5a Since detectBestMatchingGame now returns a ADGameDescription pointer, we can change detectGame to return a ADGameDescList
svn-id: r25575
2007-02-13 23:47:41 +00:00
Max Horn 7572d2b4f2 Changed detectBestMatchingGame to return a pointer to a ADGameDescription (or a subclass of it); added a (currently fake) fallback callback entry in ADParams
svn-id: r25574
2007-02-13 23:37:44 +00:00
Max Horn 2e567f1cc9 Some more AdvancedDetector cleanup: Removed kADFlagFilebasedFallback flag (just check whether a fileBasedFallback has been provided); moved some internal definitions, added some doxygen coments, etc.
svn-id: r25570
2007-02-13 22:25:25 +00:00
Gregory Montoir 1ce912e106 made rtrim() and ltrim() global functions, to reduce code duplication (it seems parallaction/parser.cpp code re-use them too
svn-id: r25564
2007-02-13 21:06:57 +00:00
Eugene Sandulenko 151be65ca3 Kill MSVC warning:
warning C4245: 'initializing' : conversion from 'Common::ADGameFlags' to 'uint32', signed/unsigned mismatch

svn-id: r25557
2007-02-13 20:34:17 +00:00
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