aboutsummaryrefslogtreecommitdiff
path: root/common
AgeCommit message (Collapse)Author
2007-03-11Added shared filed support using native file APIs.Lars Persson
svn-id: r26087
2007-03-10Shut useless MSVC8 warning. We use pack-start.h and pack-end.h and itEugene Sandulenko
complained that alignment state changed after #include. I.e. exactly what we wanted to do. svn-id: r26061
2007-03-09Removing some unnecessary #includesMax Horn
svn-id: r26044
2007-03-09Avoid double frees in HashMap::eraseMax Horn
svn-id: r26040
2007-03-09reduced dependency from windows-specific header filesNicola Mettifogo
svn-id: r26034
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-08cleaned up stdafx.h, removing various unnecessary #includes (there are still ↵Max Horn
some windows ones which look fishy, though) svn-id: r26031
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-03-08Moved the printf #define for the NDS into scummsys.h (not sure if that suits ↵Max Horn
your needs Neil, feel free to change it again if necessary) svn-id: r26024
2007-03-08common/util.cpp needs fprintf; various std I/O functions are not used by ↵Max Horn
anything in our code, so there is no need to emulate them -- mark these; my previous commits likely broke compilation of the DS backend, try to reduce the brokeness a bit svn-id: r26023
2007-03-08Moving Nintendo DS std C I/O emulation wrappers to common/file.cpp; also add ↵Max Horn
a FIXME comment (why is assert redefined in ds-fs.h ?) svn-id: r26020
2007-03-08Changed File::_handle to be of type void* instead of FILE* (to ease ↵Max Horn
porting); moved PS2 std C I/O defines to file.cpp (no code other than the file & savegame code should use fopen etc. directly) svn-id: r26017
2007-03-08Changed ConfigManager to use class File instead of std C I/O to write the ↵Max Horn
config file svn-id: r26016
2007-03-08Turning FilesystemNode comment into a doxygen commentMax Horn
svn-id: r26015
2007-03-04Removing _ptrOrig (hi Torbjorn, have fun recompiling)Max Horn
svn-id: r25980
2007-03-04Some HashMap cleanup:Max Horn
* 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-04Paranoia: a hashmap node must never ever change its key after its creationMax Horn
svn-id: r25965
2007-03-03Allow PC Engine version of Loom to at least start up.Travis Howell
svn-id: r25951
2007-03-01Removed File::incRef and decRefMax Horn
svn-id: r25920
2007-02-28Fix spellingMax Horn
svn-id: r25908
2007-02-25TypoMax Horn
svn-id: r25861
2007-02-25Add some doxygen comments to Common::StreamMax Horn
svn-id: r25859
2007-02-25TypoMax Horn
svn-id: r25858
2007-02-20Added new ReadStream::readStream method which can be used to read a portion ↵Max Horn
of an arbitrary ReadStream into a memory buffer wrapped by a MemoryReadStream svn-id: r25754
2007-02-20Removed XORReadStream (it was unused); enhanced MemoryReadStream to be able ↵Max Horn
to dispose the memory block it wraps (simplifies memory management) svn-id: r25748
2007-02-19Enhance (Seekable)SubReadStream so be able to (optionally) dispose the ↵Max Horn
parent stream after it's been used (simplifies memory management for client code) svn-id: r25732
2007-02-18Made it possible to init a Stack<T> with an Array<T>; removed hack in ↵Max Horn
Stack<T>::top svn-id: r25696
2007-02-18Improved (I hope) the 'Unknown MD5' messages in our detectors a little bitMax Horn
svn-id: r25695
2007-02-18Renamed crc32 which conflicts with Tapwave system functionChris Apers
svn-id: r25692
2007-02-17Get rid of Common::SaveFileMax Horn
svn-id: r25666
2007-02-17Added finalize() method to Common::OutSaveFile (which by default just ↵Max Horn
flushes the stream), changed engines to call that before deleting OutSaveFile instances (instead of just flushing) svn-id: r25660
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-14Extended MD5 API a bit: added a variant of md5_file which takes an arbitrary ↵Max Horn
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-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-13made rtrim() and ltrim() global functions, to reduce code duplication (it ↵Gregory Montoir
seems parallaction/parser.cpp code re-use them too svn-id: r25564
2007-02-13Kill MSVC warning:Eugene Sandulenko
warning C4245: 'initializing' : conversion from 'Common::ADGameFlags' to 'uint32', signed/unsigned mismatch svn-id: r25557
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