aboutsummaryrefslogtreecommitdiff
path: root/common/file.cpp
AgeCommit message (Collapse)Author
2006-03-25Add kListAllNoRoot type to listDir() to handle recent file class changes, on ↵Travis Howell
file system backends which use _isPseudoRoot svn-id: r21449
2006-03-25- Implemented case insensitive file reading. Left old system as a fallbackEugene Sandulenko
in case some engine writer decide to do something unwise - Removed used of ConfMan.getKey("path") in file-related cases, because now File class handles that - Fixed bug in ScummEngine_v80he::o80_getFileSize() where path delimiters weren't translated svn-id: r21443
2006-03-15Moving the MacOS bundle file checking to another function, it was getting ↵Oystein Eftevaag
called redundantly. svn-id: r21309
2006-03-15* 'make bundle' now copies the default theme files into the bundle.Oystein Eftevaag
* Common::File will now look inside the application bundle on MacOS X for a file if it can't find it anywhere else (so it'll find default-theme.ini and .zip) * Cleaned up some #ifs. svn-id: r21308
2006-02-11Change CVS keywords to SVN keywordsMax Horn
svn-id: r20510
2006-01-18Update copyright noticeEugene Sandulenko
svn-id: r20088
2005-10-18Update FSF address. Eek. Actually that took place on May 1, 2005Eugene Sandulenko
svn-id: r19142
2005-09-03Change PalmOS identChris Apers
svn-id: r18746
2005-05-10Moved class File and the MD5 stuff to namespace CommonMax Horn
svn-id: r18037
2005-05-09Patch #1181544 (AmigaOS 4 changes)Max Horn
svn-id: r18011
2005-04-23Check for a '\' before adding slash too, otherwise starting a game in root ↵Travis Howell
directory will fail. svn-id: r17763
2005-04-22* Added new virtual base class 'Stream', ReadStream andMax Horn
WriteStream are now subclasses of it. * Added new methods eos(), ioFailed(), clearIOFailed() to all streams. This allows better error checking. * SaveFile classes take advantage of these new standard stream APIS * Removed File::gets() * Added SeekableReadStream::readLine() (replaces File::gets) * Added WriteStream::writeString, for convenience svn-id: r17752
2005-01-09Added new interface SeekableReadStreamMax Horn
svn-id: r16493
2005-01-01Updated copyrightMax Horn
svn-id: r16398
2004-11-27Make use of our String class instead of juggling with char pointers; added ↵Max Horn
File::exists method svn-id: r15913
2004-11-14Extend fopenNoCase with probe of capitalized files, such as Cave.mid.Eugene Sandulenko
svn-id: r15812
2004-11-07For now, perform writing always in the current directory (the old code would ↵Max Horn
just create a new file in the first place it was looking at when using the write mode, which definitely is not what we want in most cases) svn-id: r15730
2004-10-19Got rid of ungetc() to save Chrilith from the trouble of implementing itTorbjörn Andersson
himself on PalmOS. svn-id: r15616
2004-10-18Accepted patch #1048693 -- Making File::gets() more well-defined.Eugene Sandulenko
svn-id: r15608
2004-10-16Fix bug #1048129 which prevented eof() method from working.Eugene Sandulenko
svn-id: r15573
2004-10-16Add gets() method to File class.Eugene Sandulenko
svn-id: r15572
2004-08-05Try the current dir last, not firstMax Horn
svn-id: r14469
2004-07-31Fixed bug #1001069; clarified/simplified some error messagesMax Horn
svn-id: r14375
2004-07-26slightly more informative error messages in class FileMax Horn
svn-id: r14345
2004-07-23Allow subclasses to modify File class members (e.g. to set _ioFailed); ↵Max Horn
change some warnings into errors svn-id: r14302
2004-07-18Simplified fopenNoCase (and reduced the code redundancy)Max Horn
svn-id: r14252
2004-07-01Fix bug introduced with last addDefaultDirectory() change. It preventedEugene Sandulenko
lowercase files from opening. svn-id: r14148
2004-06-28Added simple ref-counting to the File classMax Horn
svn-id: r14106
2004-06-28Enhanced default directory support in the File class; now one can specify ↵Max Horn
arbitrary many default search directories svn-id: r14095
2004-06-27Reversed param order of File::open() -- this allowed me to get rid of a few ↵Max Horn
more getGameDataPath() calls svn-id: r14090
2004-04-17Removed XOR encoding stuff from File class; instead the new Scumm::XORFile ↵Max Horn
class provides this functionality now svn-id: r13597
2004-04-17Fix byte readsMax Horn
svn-id: r13596
2004-04-17Introduce ReadStream and WriteStream (as explained in my File class design ↵Max Horn
mails on scummvm-devel) svn-id: r13595
2004-02-10Previous method wouldn't work, since each langague is in different directory.Travis Howell
svn-id: r12810
2004-02-06Add extra paths for international version of Simon the Sorcerer 1, so game ↵Travis Howell
can be played from CD. svn-id: r12745
2004-01-06add missing comma to ensure all directories are checkedJonathan Gray
svn-id: r12177
2004-01-06updated copyright noticeMax Horn
svn-id: r12176
2003-12-27Search additional folder for BS1Travis Howell
svn-id: r11956
2003-12-25be stricter about File::open paramsMax Horn
svn-id: r11919
2003-11-30cleanupMax Horn
svn-id: r11432
2003-11-18Add extra directory checks for Macintosh versions of indy3/loomTravis Howell
svn-id: r11333
2003-10-10some cleanupMax Horn
svn-id: r10720
2003-09-24Add Acorn version of Simon the Sorcerer 1 TalkieTravis Howell
svn-id: r10389
2003-09-17added a static method setDefaultDirectory to class File; used this to ↵Max Horn
simplify some code; added a global g_sound pointer in bs2, this cuts down on uses of g_sword2 (of course both should be removed on the long run); some other minor tweaks/fixes svn-id: r10278
2003-09-17delete name only after closing the fileMax Horn
svn-id: r10270
2003-09-10moved declaration of error/warning/debug from engine.h to util.hMax Horn
svn-id: r10149
2003-09-08Some files are located in a different folder in Atari-ST version of ZakChris Apers
svn-id: r10087
2003-08-22add sword2 cd dirsJonathan Gray
svn-id: r9816
2003-08-21patch #791738 g++ 3.4 compile fix, from Falk Hueffner and a few minor local ↵Jonathan Gray
bits in my tree svn-id: r9807
2003-08-01mingw compile broken when include order was changedTravis Howell
svn-id: r9363