Commit Graph

78 Commits

Author SHA1 Message Date
Glenn Maynard f99fa91bf9 If we didn't rename the temporary file, delete it. 2005-12-06 17:09:34 +00:00
Glenn Maynard dff9a680b5 simplify 2005-12-06 17:07:21 +00:00
Glenn Maynard 8ab36ad2a0 If the flush fails, don't clear the buffer. That way, if Flush() is called multiple
times, and for some reason it succeeds on the second call (eg. more disk
space is now available), we don't lose that data.
2005-12-06 16:23:38 +00:00
Glenn Maynard 445074885a cleanup 2005-12-06 16:22:11 +00:00
Glenn Maynard 08bbfd215d work around VC brain damage 2005-09-29 06:35:30 +00:00
Glenn Maynard 04ec4e66f4 add optional RageFileDriver::MoveFile override; implement for RageFileDriverDirect and RageFileDriverTimeout 2005-09-28 22:59:12 +00:00
Glenn Maynard 7c7c547131 missing headers 2005-09-03 21:26:04 +00:00
Renaud Lepage 4cf9334b9f Xbox : Correct the path correction routine. We are now back. 2005-08-26 19:02:10 +00:00
Glenn Maynard 162d235691 cleanup 2005-06-05 15:15:55 +00:00
Glenn Maynard c14c03c351 cleanup 2005-06-01 23:47:56 +00:00
Glenn Maynard 7e1b549eb7 umask fix 2005-05-31 23:26:07 +00:00
Glenn Maynard edf10cb9b3 remove RageFileDriver::Ready 2005-05-31 21:58:21 +00:00
Glenn Maynard 209040e02d clean up file drivers: drivers now always receive paths with trailing slashes;
this makes handling the relative "root" directory not a special case (".").
mountpoints now always begin with a slash.  before, "/foo" and "foo" were
in two separate namespaces, which was weird and confusing; the two now
mean the same thing.  there are no more special "default mountpoints"; just
mount to "/".  "@path" mounts are now "/@path", and they do show up in
GetDirListing("/") (but, as before, opening "/@foo/bar" will never create
a "@foo/bar" path in a non-"@foo" mountpoint)
2005-05-20 22:26:54 +00:00
Glenn Maynard 7df474b776 make remount work 2005-01-27 03:54:49 +00:00
Glenn Maynard 67d5bfd6d5 RageFileManager::Remount 2005-01-27 03:43:55 +00:00
Glenn Maynard ae92b86b34 RageFileBasic 2004-12-11 02:25:38 +00:00
Glenn Maynard 47994102b3 vc fix? 2004-12-10 13:13:14 +00:00
Glenn Maynard 8915e3944a simplify; use RageBasicFile instead of RageFileObj 2004-12-10 10:04:32 +00:00
Glenn Maynard 287a150db7 Move buffering logic from RageFile into RageFileObj.
Common file interface class, RageBasicFile, shared by RageFile
and RageFileObj.  This makes most uses of these objects interchangeable.
RageFile is now just a simple wrapper for RageFileObj, to create
files in FILEMAN's namespace; file objects can also be created
independently.  This means that, for example, IniFile can be used
to write a file to a CString, without having to jump through hoops,
and without having to use a separate file access wrapper; just do
something like:

RageFileObjMem string_file;
ini.WriteFile( string );
const CString &sString = string_file.GetString();
2004-12-10 08:48:18 +00:00
Glenn Maynard e2ea72dbac internalize RageFileObj implementation functions 2004-12-10 03:14:01 +00:00
Glenn Maynard ec22ffec62 stop passing ugly back-references to the RageFile to RageFileObj 2004-12-09 11:47:20 +00:00
Glenn Maynard bb94a3aaa1 cleanup: avoid parent access 2004-12-09 11:28:24 +00:00
Glenn Maynard 6761eb7a51 remove Rewind() 2004-12-09 10:44:07 +00:00
Glenn Maynard b1d8c97359 (how did that happen?) 2004-10-06 18:11:10 +00:00
Glenn Maynard 12c21c302c error checks to trace https://sourceforge.net/tracker/index.php?func=detail&aid=1035264&group_id=37892&atid=421366
fix error message
2004-10-06 04:25:27 +00:00
Glenn Maynard 246281574d fix infinite recursion when LogCheckpoints 2004-10-05 14:59:30 +00:00
Glenn Maynard 5e41e72e51 comment 2004-09-01 23:12:20 +00:00
Glenn Maynard 571af53ea8 ZIP reading fixes 2004-06-23 05:15:47 +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 df9c4cbd6e fix failed writes to "foo.sm" leaving "new.foo.sm" behind, which will
trigger an error on the next load
2004-04-19 22:19:54 +00:00
Glenn Maynard 79ac1ae2c6 directory flushing doesn't work in windows 2004-04-19 21:00:18 +00:00
Glenn Maynard f7b18deff3 fix driver root creation 2004-04-17 22:37:40 +00:00
Glenn Maynard 82e8261d30 reenable dir fsync 2004-04-16 22:31:40 +00:00
Steve Checkoway 20a8bab45c Clean up includes. 2004-04-05 05:22:32 +00:00
Glenn Maynard d038179117 disable directory flushing for now (oops, meant to commit this two days ago) 2004-03-28 23:17:08 +00:00
Glenn Maynard 4e5a4a8ad2 fix error handling on failed flush
better flushing
2004-03-25 01:22:08 +00:00
Glenn Maynard 0390641b45 remove XXX 2004-02-27 05:44:53 +00:00
Glenn Maynard f790653b0f don't fsync by default; it's too slow 2004-02-20 06:01:12 +00:00
Glenn Maynard 9df2466099 move DirectFilenameDB into RageFileDriverDirectHelpers.cpp 2004-02-11 02:58:40 +00:00
Glenn Maynard 1b69bfdff9 allow VFS drivers to register themselves 2004-02-10 23:39:45 +00:00
Manu Evans ce888de237 fixed some xbox build errors :/ 2004-01-17 05:21:24 +00:00
Glenn Maynard 4f901a9f00 fix "Couldn't chdir(foo): No such file or directory" 2004-01-16 22:40:29 +00:00
Glenn Maynard 85e13c0360 add checkpoints to track obscure crash 2004-01-14 08:13:08 +00:00
Glenn Maynard 13c4103e62 retry writes on EINTR a couple times 2004-01-13 00:06:46 +00:00
Glenn Maynard 09a8e53e57 fix sample start thrashing 2004-01-11 22:38:27 +00:00
Glenn Maynard f9f4238dda cleanup 2004-01-06 06:00:03 +00:00
Glenn Maynard 05b5ab8a1d remove TTYPE_FILE, TTYPE_DIR, TTYPE_NONE 2004-01-06 05:44:28 +00:00
Glenn Maynard afd42bc90f move stuff into RageFileDriverDirectHelpers 2004-01-06 05:40:24 +00:00
Glenn Maynard 5194d11dea simplify 2004-01-05 20:18:27 +00:00
Glenn Maynard adf2e68f2a maybe fix file writing in win9x 2004-01-03 06:34:33 +00:00