Commit Graph

35 Commits

Author SHA1 Message Date
Glenn Maynard 55b0dc53be simplify 2004-08-15 15:25:15 +00:00
Glenn Maynard 6772c9b689 fix possible underrun 2004-06-25 19:09:44 +00:00
Glenn Maynard 0fc21ce746 fix buffer overflow 2004-06-25 18:30:33 +00:00
Glenn Maynard 571af53ea8 ZIP reading fixes 2004-06-23 05:15:47 +00:00
Glenn Maynard 31ce6c9a0d buffer everything, not just GetLine 2004-06-23 01:53:30 +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
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
Chris Danford 17e43aea98 use "\r\n" as newline for all platforms 2004-05-04 00:01:24 +00:00
Glenn Maynard 4af86cda13 RageFile::GetFileSize() const 2004-02-17 21:42:06 +00:00
Glenn Maynard 14e554d14e fix filepos desync 2004-02-12 05:24:22 +00:00
Chris Danford 8a77374e04 fix VC6 compile error 2003-12-21 18:35:00 +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 c3f13981ef CollapsePath(".") -> "." 2003-12-15 02:32:09 +00:00
Glenn Maynard 63bb61388a add RageFile::Flush 2003-12-12 07:47:38 +00:00
Glenn Maynard a7190307f3 fix up path handling 2003-12-11 07:24:32 +00:00
Glenn Maynard 65248e01d7 fix crash 2003-12-11 07:15:06 +00:00
Glenn Maynard 9723ca794b fix refcounting 2003-12-11 07:13:20 +00:00
Glenn Maynard a8365e11b6 Make CollapsePath strip "." and empty path entries "foo//bar" 2003-12-11 06:51:54 +00:00
Glenn Maynard 37fc279c8f refcount drivers 2003-12-11 05:32:35 +00:00
Glenn Maynard e9ae2c0803 continue phasing out BASE_PATH and SLASH 2003-12-10 09:44:16 +00:00
Glenn Maynard f4a3640b0d optimize 2003-12-10 09:27:41 +00:00
Glenn Maynard e844e3c5c0 fix copied filepos 2003-12-10 05:48:31 +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 bcf2c3da35 optimize 2003-12-08 03:24:00 +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 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
Steve Checkoway b125e3d980 Fix RageFile, use RageFile. Const fix in LyricsLoader. 2003-11-30 06:20:25 +00:00
Steve Checkoway a740001f91 If a file is already open, close it. 2003-11-28 04:57:54 +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
Chris Danford 278cb4c3f1 runs on Xbox 2003-07-22 07:47:27 +00:00