aboutsummaryrefslogtreecommitdiff
path: root/common
AgeCommit message (Collapse)Author
2008-10-02Ignore String::deleteLastChar when called on an empty stringMax Horn
svn-id: r34718
2008-10-02Renamed FilesystemNode -> FSNodeMax Horn
svn-id: r34716
2008-09-30Fixing ConfigManager::loadConfigFileMax Horn
svn-id: r34707
2008-09-30AdvancedDetector: Do not (ab)use paths to keep track of files, rather, use ↵Max Horn
FSNodes -- partial (?) fix for bug #2137680 svn-id: r34702
2008-09-30Fixed functionality of ZipArchive::getAllNames(). Now it expects a possibly ↵Vicent Marti
non-empty string list and returns the amount of new filenames added to it. svn-id: r34698
2008-09-30Added multiple new open() methods to Common::File, which make it possible to ↵Max Horn
use this class as a generic convenience wrapper around all kinds of SeekableReadStream; also renamed the name() method to the less confusing getName() svn-id: r34696
2008-09-29Ported ZipArchive::getAllNames() implementation from GUI branch.Vicent Marti
svn-id: r34691
2008-09-29add constructor to SearchSet::Node for proper init of structure members with ↵Gregory Montoir
gcc 3.4.x (see tracker items #2120595, #2106292) svn-id: r34686
2008-09-29Don't subclass ArjFile from Common::File (there seems to be no good reason ↵Max Horn
for it). BTW, this code is an abomination and should be replaced by an Archive/SearchSet approach svn-id: r34681
2008-09-29File::open no longer falls back to searching the current dir (if this causes ↵Max Horn
any regressions, please report them; don't work around them, don't revert this change, without discussing it first) svn-id: r34680
2008-09-29Add priority parameter to the SearchMan APIMax Horn
svn-id: r34679
2008-09-27Changed Common::File to use SearchManMax Horn
svn-id: r34663
2008-09-27Fixed a nasty bug in SearchManager::addDirectory; made the 'char' ↵Max Horn
constructor of Common::String explicit, to avoid such bugs in the future svn-id: r34660
2008-09-27Modified Common::SearchSet to take signed integer priorities, for ↵Max Horn
convenience (so that one can add archives with less-than-default priority) svn-id: r34659
2008-09-24Changed builtin Common::String capacity to 24 (on 32 bit systems), to make ↵Max Horn
sizeof(String) 32; reduces overall memory req by 200k on my system; overall # of mallocs after this + the refcount memory pool change is almost unchanged svn-id: r34644
2008-09-24Changed Common::String to use a MemoryPool for its refcountsMax Horn
svn-id: r34642
2008-09-23Perform error checking when reading from a ZIP fileMax Horn
svn-id: r34634
2008-09-23cleanupMax Horn
svn-id: r34633
2008-09-23Moved ZipArchive to namespace Common; moved unzip internals from unzip.h to ↵Max Horn
unzip.cpp (to be cleaned up) svn-id: r34632
2008-09-23Moved ZipArchive implementation into unzip.cpp, added new ZipArchive::isOpen ↵Max Horn
method svn-id: r34630
2008-09-22Fix comments for random() funcs (thanks to salty-horse for pointing this out)Max Horn
svn-id: r34628
2008-09-20Little readability tweakMax Horn
svn-id: r34615
2008-09-20Fixed "empty control statement" warning in FSDirectory::matchPattern().Vicent Marti
svn-id: r34605
2008-09-18Added 'native' implementations for FSDirectory::matchPattern & ↵Max Horn
SearchSet::getAllNames (untested) svn-id: r34599
2008-09-17Simplified & fixed SearchManagerMax Horn
svn-id: r34598
2008-09-17Moved base/game.* to engines/game.*Max Horn
svn-id: r34589
2008-09-16Merged common/gzip-stream.* and common/zlib.*Max Horn
svn-id: r34578
2008-09-16Modified uncompress in common/zlib.h to return a bool, so that we don't have ↵Max Horn
to #include the real zlib.h; fixed PSP backend to not run uncompress inside an assert (which would cause it to not be invoked when turning off asserts) svn-id: r34576
2008-09-15Turned compressed savefile wrapper into a generic stream wrapperMax Horn
svn-id: r34566
2008-09-15Corrected and shortened some file opening related warningsMax Horn
svn-id: r34556
2008-09-15Fix SubReadStream by initing _eos to false in the constructor (spotted ↵Max Horn
thanks to our unit tests) svn-id: r34555
2008-09-14Big patch changing semantics of ReadStream::eos():Willem Jan Palenstijn
eos() now only returns true _after_ trying to read past the end of the stream. This has a large potential for regressions. Please test! svn-id: r34549
2008-09-14Fixed a typo & clarified a commentMax Horn
svn-id: r34541
2008-09-13Portability fixes.Eugene Sandulenko
svn-id: r34515
2008-09-13Big patch changing the signature of various Stream methods (some ports may ↵Max Horn
need to be slightly tweaked to fix overloading errors/warnings) svn-id: r34514
2008-09-11Added first version of the SearchManager, as it is presented in patch ↵Nicola Mettifogo
tracker item 2093502. svn-id: r34492
2008-09-11Remove obsolete note about fopenMax Horn
svn-id: r34487
2008-09-08Switched File::open, File::addDefaultDirectory to use a SearchSet ↵Max Horn
internally. Code is a lot shorter & simpler now, far less failing fopen calls (good for NDS and other ports); drawback: regressions :). Good bug hunting to everybody svn-id: r34444
2008-09-07Changed md5_file(FSNode) to use FSNode::openForReadingMax Horn
svn-id: r34437
2008-09-07Add a priority param to OSystem::addSysArchivesToSearchSet (still in search ↵Max Horn
for a better name ;) svn-id: r34432
2008-09-07oopsMax Horn
svn-id: r34431
2008-09-07Made File::addDefaultDirectory(Recursive) ignore FSNodes which are not dirs ↵Max Horn
/ are invalid, instead of erroring out svn-id: r34430
2008-09-07Allow invoking FilesystemNode::getChild on non-dir nodes, by returning an ↵Max Horn
invalid node in that case svn-id: r34429
2008-09-07Added new OSystem method addSysArchivesToSearchSet() [better name pending, ↵Max Horn
suggestions welcome] svn-id: r34424
2008-09-06Added hasArchive to SearchSet.Johannes Schickel
svn-id: r34397
2008-09-06Got rid of File::eof()Max Horn
svn-id: r34396
2008-09-06Clarified / fixed some Common::Archive doxygen commentsMax Horn
svn-id: r34394
2008-09-06Removed last traces of fopen / FILE from common/file.cppMax Horn
svn-id: r34393
2008-09-06Switched class File & DumpFile to use StdioStream internallyMax Horn
svn-id: r34391
2008-09-06Added some unit tests for Stream::readLine_NEW, and clarified that ↵Max Horn
readLine_NEW is essentially fgets in disguise svn-id: r34384