Ryan C. Gordon
ffa1836335
Moved ZIP tree management up to a higher level, to be reused elsewhere.
2017-07-15 15:59:55 -04:00
Ryan C. Gordon
56bddb0b78
Fixed some comments.
2017-07-16 04:35:46 -04:00
Ryan C. Gordon
5afd9754e2
Reenable QPAK support by default.
2017-07-16 04:34:52 -04:00
Ryan C. Gordon
9cec66be3e
Removed SWIG ifdefs in physfs.h
2017-07-16 04:36:40 -04:00
Ryan C. Gordon
53225ca62c
Fixed more Visual Studio compiler warnings.
2017-07-13 00:21:25 -04:00
Ryan C. Gordon
1bacc6d6af
Fixed some compiler warnings with Visual Studio.
2017-07-13 00:16:24 -04:00
Ryan C. Gordon
bf9999af2d
Fixed compiler warnings on Visual Studio about const qualifiers.
2017-07-12 23:54:45 -04:00
Ryan C. Gordon
efd71e08f6
Move headers around to get those MSVC anti-portability nags to go away.
2017-07-12 20:55:58 -04:00
Ryan C. Gordon
a681fe258d
unix: OS-specific paths should also chop filename off base path.
2017-07-12 20:52:51 -04:00
Ryan C. Gordon
187d04ae9e
Debian/kFreeBSD should use the FreeBSD-specific codepaths, not generic Unix.
2017-07-12 20:49:53 -04:00
Ryan C. Gordon
19b15d34a1
Cleaned up what symbols are exported from the library.
2017-07-12 15:41:12 -04:00
Ryan C. Gordon
2cb1f73737
Cygwin has mntent.h, and no need to check for CMake tests now.
2017-07-12 02:41:28 -04:00
Ryan C. Gordon
4b2180dd17
unix: Don't #error if no CD-ROM support, because we already give a #warning.
2017-07-12 02:33:15 -04:00
Ryan C. Gordon
68ad1fa8c5
Removed BeOS support (Haiku still supported, though!).
...
Since Haiku has pthread support, dropped the BLocker code and use the pthread
code from platform_posix.c instead.
2017-07-12 00:16:57 -04:00
Ryan C. Gordon
c2c1c7ac30
Removed __PHYSFS_platformSetDefaultAllocator(); nothing uses it now.
...
We can pull it back from revision control if something needs it later.
2017-07-11 23:52:13 -04:00
Ryan C. Gordon
0be0e3fd33
mac: Removed Carbon header include and custom allocator (just use malloc).
2017-07-11 23:47:48 -04:00
Ryan C. Gordon
73070339a4
Simplify CMakeLists.txt, etc.
...
Try to test things with preprocessor macros instead of CMake, and get rid of
silly options like turning off thread safety.
2017-07-11 23:32:46 -04:00
Ryan C. Gordon
fe55814681
vdf: make private functions static.
2017-07-11 23:25:20 -04:00
Ryan C. Gordon
4015689068
Patched to compile on BeOS/Haiku.
2017-07-09 20:50:48 -04:00
Ryan C. Gordon
53c81e216a
Checking if this #pragma pack works better on gcc 2.95.
2017-07-09 20:46:31 -04:00
Ryan C. Gordon
2dbd784cc1
Fixed some DOS newlines.
2017-07-09 20:45:34 -04:00
Ryan C. Gordon
3324ec88a9
Maybe fix compiler warnings on Cygwin.
2017-07-09 18:21:54 -04:00
Ryan C. Gordon
f5c6383b4b
Patched to compile on Visual Studio.
2017-07-09 18:17:33 -04:00
Ryan C. Gordon
cf11d2ec99
Workaround snprintf() deficiencies on Visual Studio.
2017-07-09 17:46:53 -04:00
Ryan C. Gordon
c057f2d7dd
Fixed compiler warnings on FreeBSD.
2017-07-09 17:31:27 -04:00
Ryan C. Gordon
083940aef1
Don't try to build CD-ROM support on Emscripten.
2017-07-09 17:28:33 -04:00
Ryan C. Gordon
f8ed5c6f7e
Replaced sprintf() calls with snprintf().
2017-07-09 17:06:37 -04:00
Ryan C. Gordon
e4c035a99f
Pacify compiler warning.
2017-07-09 17:02:13 -04:00
Ryan C. Gordon
bae1f440ba
Patched to compile on Windows.
2017-07-09 15:03:12 -04:00
Ryan C. Gordon
84231feb0f
windows: (re)added support for symbolic links.
2017-07-09 15:01:17 -04:00
Ryan C. Gordon
59a07020a8
Turn on all the archivers by default.
...
(Except for the lzma archiver, since it needs a bunch of external code.)
The difference in binary size, for Linux/amd64 compiled for size (-Os),
is 4 kilobytes. It's senseless to not just compile them all in.
2017-07-08 18:25:20 -04:00
Ryan C. Gordon
4cbffd39e8
OS/2: actually working again, now.
2017-07-07 13:55:52 -04:00
Ryan C. Gordon
683216def8
OS/2: more work on getting this to compile.
2017-07-07 13:06:44 -04:00
Ryan C. Gordon
9a19eba065
Patched to compile with C89 compilers.
2017-07-07 09:21:06 -04:00
Ryan C. Gordon
2bd8c33fe5
OS/2: implemented Unicode support, modernized platform_os2.c's code.
...
(untested.)
Implemented Unicode support, ripped out old APIs that aren't used any more,
corrected some things.
2017-07-06 21:34:24 -04:00
Ryan C. Gordon
32da097a55
Cleanup BAIL_* and GOTO_* macros to be less cluttered.
...
This also fixes really aggressive compiler warnings about the "if (!ERRPASS)"
construct producing unreachable code.
2017-07-06 11:51:41 -04:00
Ryan C. Gordon
9aebcff5ba
OS/2: base dir needs to end with a path separator.
2017-07-06 00:47:36 -04:00
Ryan C. Gordon
34009cf762
Fix some endlines.
2017-07-06 00:04:10 -04:00
Ryan C. Gordon
d1e40af4e3
OS/2: fix up the base/user/pref dir code.
...
There might be better ways to do this in modern times than shove it all into
the base dir, though.
2017-07-06 00:03:49 -04:00
Ryan C. Gordon
062bdc2c5b
Patched to compile with OpenWatcom.
2017-07-05 23:49:10 -04:00
Ryan C. Gordon
9ca88e3794
Patched platform_os2.c to compile.
2017-07-05 23:48:21 -04:00
Ryan C. Gordon
58bca6ae05
Watcom C should include malloc.h to make the alloca macro available.
2017-07-05 21:30:39 -04:00
Ryan C. Gordon
15c18b0c04
os2: added OS/2 support back in.
...
With the release of ArcaOS, this is a live platform again.
This code probably doesn't compile yet; I've just given it a first shot at
resolving the changes between the last OS/2-supported revision and now.
This still needs Unicode support added in any case.
2017-07-05 21:29:37 -04:00
Francesco Bertolaccini
4b80422a79
vdf: Remove unused chunks of code, fix endianness.
2017-07-03 14:47:25 -04:00
Francesco Bertolaccini
dc5958ec71
Remove unused variable.
2017-07-03 14:41:08 -04:00
Ryan C. Gordon
656a9b92c0
Changed some URLs from http:// to https://, where supported.
2017-06-20 14:06:13 -04:00
Francesco Bertolaccini
e4206408e5
Add support for VDF
2017-06-20 13:22:41 -04:00
Ryan C. Gordon
2777b5efe2
Added a mostly-harmless FIXME.
2016-09-12 15:39:35 -04:00
Ryan C. Gordon
66b7767cec
Added support for password-protected .zip files.
...
To use: mount a .zip file as usual, open a file as usual, but append '$' plus
the password to the end of the path, like so:
PHYSFS_File *f = PHYSFS_openRead("/path/to/my/file.txt$MyPassword");
Note that this is the "traditional" PKWARE crypto, like you might get from
PkZip 2.04g or Info-ZIP. They have more advanced cryptography in the modern
.zip spec, but that's not implemented here. If you've ever tried to unzip
an archive and were prompted for a password, you probably saw the traditional
crypto at work.
Note that this is NOT a secure thing: if you ship an app that contains a
password, someone with a debugger can retrieve it. Note also that this
password could be available to any code registered as a PHYSFS_Archiver, and
that due to how archives combine into a single file tree, the wrong archiver
can get the password, at a minimum causing it to fail because passwords don't
match.
In short: make sure you know what you're doing before you use this!
2016-09-12 15:38:30 -04:00
Ryan C. Gordon
ab7eb81a4a
Platform deinit should happen last, since other deinit bits might depend on it.
2016-09-07 21:21:59 -04:00