aboutsummaryrefslogtreecommitdiff
path: root/common/file.h
AgeCommit message (Collapse)Author
2003-11-30cleanupMax Horn
svn-id: r11432
2003-10-16add method to set the xor byte in the file class. Needed as the combined mac ↵Jonathan Gray
data files are only xor'd in the resource files, not the parts of the combined file svn-id: r10825
2003-10-10some cleanupMax Horn
svn-id: r10720
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-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-06-21make File constructor virtual to allow subclassing; made seek default to ↵Max Horn
SEEK_SET mode for conveniance svn-id: r8587
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-03-06updated copyrights headersPaweł Kołodziejski
svn-id: r6726
2002-12-24File object stores file name (useful for debugging)Max Horn
svn-id: r6089
2002-11-10indention fix :-)Max Horn
svn-id: r5492
2002-10-21The terms Word and DWord are somewhat Windows centric; in fact there are ↵Max Horn
systems on which word is 32bit, as opposed to our 16 bits. Hence, use the uin16/uint32 naming scheme, which is not ambigious svn-id: r5216
2002-09-15improved open function in File classPaweł Kołodziejski
svn-id: r4945
2002-09-13factored out the case-insensitive fopen into its own function - makes it ↵Max Horn
easier to adapt all the code to use it. TODO: improve it to work like in exult, i.e. sometimes other parts of the path have to be changed to upper/lower case (e.g. video vs. VIDEO) svn-id: r4935
2002-09-13ugh! yes, negative offsets for seek do occur! Thus using an unsigned isn't ↵Max Horn
such a good choice for the offset parameter svn-id: r4927
2002-09-08rewrote config class; cleanup; code restructuringMax Horn
svn-id: r4903
2002-09-02added write support to FilePaweł Kołodziejski
svn-id: r4900
2002-09-02changed file io in sounds to class FilePaweł Kołodziejski
svn-id: r4896
2002-08-31updatedPaweł Kołodziejski
svn-id: r4875
2002-08-31added class FilePaweł Kołodziejski
svn-id: r4873