A portable, flexible file i/o abstraction.
Go to file
Ryan C. Gordon 5786a58628 PHYSFS_flush() shouldn't call PHYSFS_Io::flush().
The former is meant to send PhysicsFS-buffered data to the PHYSFS_Io's
implementation, the latter is meant to tell the OS to definitely make sure the
data is safely written to disk (or at least, that's what it does in practice).

This was making PHYSFS_setBuffer()'d handles _slower_, since they would end
up blocking whenever the buffer was full until the data made the full trip to
physical media, instead of just letting the OS do its own buffering.

Now we still PHYSFS_Io::flush() on PHYSFS_close(), like this has always
worked. That might also be overkill, but that remains a historical artifact
of trying to keep the underlying file handle usable if pending writes fail
for possibly-recoverable reasons (which isn't guaranteed if you just close()
it, at least as far as I remember).
2018-11-27 23:53:33 -05:00
docs Patched physfsrwops to compile against SDL 1.2 (thanks, Rob!). 2017-11-11 08:53:23 -05:00
extras ignorecase: Don't crash if enumeration returned a NULL pointer. 2018-03-09 14:50:37 -05:00
src PHYSFS_flush() shouldn't call PHYSFS_Io::flush(). 2018-11-27 23:53:33 -05:00
test Added PHYSFS_setRoot(). 2018-10-17 23:44:02 -04:00
.hgignore Added .hgignore ... 2009-03-28 18:15:35 -04:00
CMakeLists.txt Call the default branch "3.1.0" to avoid confusion. 2018-03-08 11:51:46 -05:00
LICENSE.txt Updated copyright date. 2018-03-08 12:21:45 -05:00
README.txt Minor documentation updates. 2017-07-22 13:48:31 -04:00

README.txt

PhysicsFS; a portable, flexible file i/o abstraction.

  https://icculus.org/physfs/

Please see the docs directory for documentation.

Please see LICENSE.txt for licensing information.