Glenn Maynard
5ec58080d9
move exception-based reading into RageFile; this is for concise, error-checked binary file reading
2004-10-05 22:53:21 +00:00
Glenn Maynard
2e6ffb73e0
remove construct-and-open RageFile ctor
2004-09-25 02:50:31 +00:00
Glenn Maynard
e804c28451
smaller buffer
2004-07-24 03:01:23 +00:00
Glenn Maynard
31ce6c9a0d
buffer everything, not just GetLine
2004-06-23 01:53:30 +00:00
Glenn Maynard
6d22c84cce
increase RageFile buffer size
2004-06-21 21:19:58 +00:00
Glenn Maynard
cd060ef6d6
remove overload that doesn't allow error checking--makes it too easy to be lazy
2004-06-06 21:06:03 +00:00
Chris Danford
b13b4fa221
fix RageFileSink error handling
2004-06-06 08:34:58 +00:00
Glenn Maynard
33a04b79de
beginning GPL->X11 license transition
...
The conventions I'm using are to put the entire copyright notice at the bottom
of each file, and to put the summary of the source file's use at the top of the
header.
Putting the license text in each file avoids confusion, and is normal practice
for many projects. Putting it at the bottom gets it out of the way; it's a
ton of clutter to put at the top.
The description is in the header. People who don't know what a class is for,
or how to use it, are probably looking at the header to see the interface,
not the implementation, so let's put the description in there. Keep it brief
(one line); any substantial implementation notes should go in the source file.
2004-05-06 00:42:06 +00:00
Glenn Maynard
f790653b0f
don't fsync by default; it's too slow
2004-02-20 06:01:12 +00:00
Glenn Maynard
4af86cda13
RageFile::GetFileSize() const
2004-02-17 21:42:06 +00:00
Glenn Maynard
efc1ce7a5d
CString foo;
...
file.Read( foo );
to read the entire file
2003-12-21 09:17:39 +00:00
Glenn Maynard
20792a51bb
Write files in such a way that a program crash, system crash, powerdown,
...
etc. won't cause data loss if we're running on a journalling filesystem.
2003-12-21 07:23:29 +00:00
Glenn Maynard
2a64220e50
cleanup
2003-12-21 02:20:53 +00:00
Glenn Maynard
63bb61388a
add RageFile::Flush
2003-12-12 07:47:38 +00:00
Glenn Maynard
29ac07278e
add RageFile copy ctor
...
fix RageFile::Rewind
implement RageFile(CString&)
2003-12-10 05:04:37 +00:00
Glenn Maynard
ba7c4e57fe
add helpers
2003-12-04 21:10:16 +00:00
Glenn Maynard
ea0ba6fcb9
VFS work
2003-12-04 08:25:59 +00:00
Glenn Maynard
24fd4d243c
SEEK_SET only
2003-12-04 04:34:45 +00:00
Glenn Maynard
d5bc752e9d
add RageFile::PutLine
2003-12-04 04:26:49 +00:00
Glenn Maynard
51b65b039b
RageFile::READ, RageFile::WRITE
2003-12-03 23:50:53 +00:00
Glenn Maynard
ac7d46e81d
remove GetFilePointer
2003-12-03 20:37:10 +00:00
Steve Checkoway
b125e3d980
Fix RageFile, use RageFile. Const fix in LyricsLoader.
2003-11-30 06:20:25 +00:00
Steve Checkoway
2da10fc9eb
um, oops. Check if it's open, not closed.
2003-11-30 03:45:04 +00:00
Chris Danford
f7e136940a
fix VC6 compile error
2003-11-29 11:17:30 +00:00
Steve Checkoway
b716ee6680
RageFile class
2003-11-27 07:46:36 +00:00
Chris Danford
35950c4eaf
Add prefs for logging. Don't throw if can't open log file. Remove Ragefopen and Rageifstream (they aren't needed).
2003-08-13 04:40:23 +00:00
Glenn Maynard
4007c2987b
quiet warning
2003-07-22 20:20:12 +00:00
Chris Danford
278cb4c3f1
runs on Xbox
2003-07-22 07:47:27 +00:00