Commit Graph

15 Commits

Author SHA1 Message Date
Max Horn
0df319e952 #include cleanup (explicityl specify the location for headers from common/, 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-08-01 12:21:04 +00:00
Max Horn
2db275b109 make File constructor virtual to allow subclassing; made seek default to SEEK_SET mode for conveniance
svn-id: r8587
2003-06-21 20:21:40 +00:00
Max Horn
2dd2e99cab the _encbyte code was evil, because it modified the memory passed to 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-28 19:03:12 +00:00
Paweł Kołodziejski
aa3766018f updated copyrights headers
svn-id: r6726
2003-03-06 21:46:56 +00:00
Max Horn
7692091a9c File object stores file name (useful for debugging)
svn-id: r6089
2002-12-24 02:02:53 +00:00
Max Horn
ca5a230d33 indention fix :-)
svn-id: r5492
2002-11-10 14:54:21 +00:00
Max Horn
8af300fec3 The terms Word and DWord are somewhat Windows centric; in fact there are 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-10-21 13:23:25 +00:00
Paweł Kołodziejski
f7ff5c67fa improved open function in File class
svn-id: r4945
2002-09-15 19:28:34 +00:00
Max Horn
f2da602963 factored out the case-insensitive fopen into its own function - makes it 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-13 18:02:34 +00:00
Max Horn
fd91bb67dc ugh! yes, negative offsets for seek do occur! Thus using an unsigned isn't such a good choice for the offset parameter
svn-id: r4927
2002-09-13 12:16:03 +00:00
Max Horn
523d8e64c0 rewrote config class; cleanup; code restructuring
svn-id: r4903
2002-09-08 01:08:12 +00:00
Paweł Kołodziejski
5b4f2cefef added write support to File
svn-id: r4900
2002-09-02 22:06:26 +00:00
Paweł Kołodziejski
ca03c9b5fc changed file io in sounds to class File
svn-id: r4896
2002-09-02 07:53:43 +00:00
Paweł Kołodziejski
e8c4f2099c updated
svn-id: r4875
2002-08-31 09:55:58 +00:00
Paweł Kołodziejski
bd7b93061b added class File
svn-id: r4873
2002-08-31 07:43:34 +00:00