aboutsummaryrefslogtreecommitdiff
path: root/common
AgeCommit message (Collapse)Author
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
2008-09-05Added simple ZipArchive class, and changed some GUI code to use it, instead ↵Max Horn
of the ugly C API to the unzip code svn-id: r34370
2008-09-05Optimized matchString for the common case where there is a trailing * (if ↵Max Horn
that is the case, abort immediately instead of scanning the rest of the string) svn-id: r34367
2008-09-05Fix class FSDirectory (matchPattern would call getAllNames would call ↵Max Horn
matchPattern would call ...); some cleanup svn-id: r34366
2008-09-05Make use of String::matchStringMax Horn
svn-id: r34365
2008-09-05Moved matchString from util.* to str.*; added new String::matchString ↵Max Horn
method; fixed matchString doxygen comment (it confused pattern & string); added unit tests for matchString svn-id: r34364
2008-09-05Made FSDirectory use the default matchPattern implementation.Nicola Mettifogo
svn-id: r34360
2008-09-05* Implemented a default matchPattern for Archive subclasses (courtesy of ↵Nicola Mettifogo
Fingolfin). * Fixed bug in FSDirectory::matchPattern. svn-id: r34359
2008-09-05Fixed severe bottleneck in the XML Parser code.Vicent Marti
Applied Max's patch for character drawing. Added new FP squareroot function. svn-id: r34354
2008-09-05Updated filehandling for Symbian OSLars Persson
svn-id: r34346
2008-09-05Ported AMIGA specific file buffering 'hack' from class File to StdioStreamMax Horn
svn-id: r34345
2008-09-05Removed useless dependencies from common/file.h in common code. When ↵Nicola Mettifogo
complete removal was not possibile, dependency has been pushed to the cpp files from the headers. svn-id: r34343
2008-09-05Updated Symbian OS file actions with ferror and fflush.Lars Persson
svn-id: r34340
2008-09-04Changed FSDirectory::getSubDirectory to return a FSDirectory pointer instead ↵Max Horn
of a SharedPtr svn-id: r34334
2008-09-03correct a typo (thanks to salty-horse)Matthew Hoops
svn-id: r34320
2008-09-03Minor formatting cleanup.Johannes Schickel
svn-id: r34319
2008-09-03Changed some code to use the new Stream::readLine() methodMax Horn
svn-id: r34318
2008-09-03Fix nasty off-by-one errorsMax Horn
svn-id: r34317
2008-09-03Fixed Stream::readLine implementation to match its doxygen commentMax Horn
svn-id: r34316
2008-09-03Renamed SeekableReadStream::readLine to SeekableReadStream::readLine_OLD; ↵Max Horn
added a new alternate SeekableReadStream::readLine() instead svn-id: r34315
2008-09-03Modified Common::Str to use exponential growth for its storage; also changed ↵Max Horn
the meaning of 'capacity' from 'max length of string' to 'size of storage' (i.e. added one) svn-id: r34313
2008-09-03Changed Archive::openFile to return a SeekableReadStream* instead of a FilePtrMax Horn
svn-id: r34312
2008-09-03clarified commentMax Horn
svn-id: r34311
2008-09-03Moved StdioStream to its own files inside backendsMax Horn
svn-id: r34303
2008-09-03Moved FilesystemNode / FSList to namespace Common; also got rid of some ↵Max Horn
'typedef Common::String String;' name aliases svn-id: r34302
2008-09-03Added new AbstractFilesystemNode::openForReading & ::openForWriting method, ↵Max Horn
based on StdioStream; changed FilesystemNode to use them svn-id: r34301
2008-09-03Added new StdioStream class, a thin wrapper around FILEMax Horn
svn-id: r34300
2008-09-03Add Nintendo Wii versions of Freddi Fish 1 and Pajama Sam 1.Travis Howell
svn-id: r34290
2008-09-02Change FilesystemNode::getChild to new desired behavior: namely, that it ↵Max Horn
should return valid nodes even for names for which no child exists (yet?) -- mail to scummvm-devel pending svn-id: r34284
2008-09-02Handle OSystem::lockScreen fail in default OSystem::clearScreen implementation.Johannes Schickel
svn-id: r34276
2008-09-02Revised HashMap implementationMax Horn
svn-id: r34273
2008-09-02Added two new global funcs which ease proper handling of 'path' strings: ↵Max Horn
Common::lastPathComponent() and Common::normalizePath() svn-id: r34272
2008-09-01First part of GSoC2008 RTL branch mergeMax Horn
svn-id: r34241
2008-09-01- Added tests for newly added Common::QueueJohannes Schickel
- Changed Common::Queue::front and Common::Queue::back to return references instead of values svn-id: r34240
2008-09-01New Queue class, from RTL branchMax Horn
svn-id: r34237
2008-08-31Added newly added archive.cpp to the build system, just in case someone ↵Johannes Schickel
wants to play with the code and wonders about errors while linking. svn-id: r34234
2008-08-31* Added Archive, an interface for searching into file containers.Nicola Mettifogo
* Added FSDirectory, an Archive implementation that models a directory from the filesystem. * Added SearchSet, an Archive implementation that allows searching multiple Archives. See patch 2034983 on sf.net. svn-id: r34227
2008-08-27Removed various uses of scumm_stricmp by the more readable ↵Max Horn
String::equalsIgnoreCase and String:: compareToIgnoreCase svn-id: r34198