~supertux-dev/supertux/+git/external-physfs:master

Last commit made on 2018-11-28
Get this branch:
git clone -b master https://git.launchpad.net/~supertux-dev/supertux/+git/external-physfs

Branch merges

Branch information

Recent commits

9bac3bc... by Ryan C. Gordon

Fixed some compiler warnings.

d394b8d... by Ryan C. Gordon

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).

f8b7206... by Ryan C. Gordon

Added PHYSFS_setRoot().

6b96dfa... by Ryan C. Gordon

windows: Workaround GetUserProfileDirectory's API change in Win10 build 1809.
(transplanted from ece6769c0676c2d4e8a5893a1acebd0f65456817)

8a6b74d... by Ryan C. Gordon

PHYSFS_setWriteDir() shouldn't create an empty file if the dir doesn't exist.

69aed29... by Ryan C. Gordon

Fix up physfs.h for compilers that are sensitive about preprocessor defines.
(transplanted from db8f944df5c56f0244229813203fb5b24e8d9968)

ebb5e45... by Ryan C. Gordon

apple: Patched to compile with older (mac 10.7) SDKs (thanks, Ken and Ryan!).

409b91b... by Ryan C. Gordon

ignorecase: Don't crash if enumeration returned a NULL pointer.
(transplanted from f83d05e87212a5c7e377f3b205e6d70fc42772d4)

7757514... by Ryan C. Gordon

Updated copyright date.

20cb578... by Ryan C. Gordon

7zip: don't forget to destroy the PHYSFS_Io when closing the archive!