aboutsummaryrefslogtreecommitdiff
path: root/common/file.cpp
AgeCommit message (Collapse)Author
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
2003-08-01#include cleanup (explicityl specify the location for headers from common/, ↵Max Horn
so that we at some point can get rid of -Icommon; exception is made for stdafx.h, since a) we might want to rename it and b) might want to move it to the top level) svn-id: r9359
2003-07-03Made read() return the number of bytes that were actually read, rather thanTorbjörn Andersson
the number that was requested. A lot of our code obviously assumes this behaviour, and the MP3 file player depends on it because otherwise, when reaching the end of the file, it will think it read a full buffer, when in fact it only got part of it and the rest is the remains from the previous read. This would cause a brief note from earlier in the track at the end of the MI1 chapter one screen. Probably other cases as well. Of course, this may cause regressions but only - I think - if the code was buggy to begin with. svn-id: r8721
2003-06-27opsPaweł Kołodziejski
svn-id: r8667
2003-06-27chenged ifdef to handle all win32 portsPaweł Kołodziejski
svn-id: r8666
2003-06-15Parentheses didn't compile on WIN32Bertrand Augereau
svn-id: r8512
2003-06-14fixed aquadran's Windows fix (a pointer is const for good reasons; simply ↵Max Horn
casting it to something non-const is bad, and undermines the compilers aliasing detection svn-id: r8481
2003-06-14fix for bug #749249, related with path of game data placed on root drive ↵Paweł Kołodziejski
under win98 svn-id: r8478
2003-05-28the _encbyte code was evil, because it modified the memory passed to ↵Max Horn
write(); worse, though, it incremented ptr2, which then was later passed to fwrite - hence if used to write something while _encbyte != 0, write() resulted in wrong data being written svn-id: r8055
2003-05-28added some missing checks for file being open before reading/writingMax Horn
svn-id: r8043
2003-05-21added fixme commentMax Horn
svn-id: r7791
2003-05-19Patch #739911: Fix for undefined behaviour in fopenNoCase()Max Horn
svn-id: r7695
2003-05-01fix leakJonathan Gray
svn-id: r7244
2003-04-30more PalmOS changesMax Horn
svn-id: r7220