Ryan C. Gordon
982411ec8a
apple: Start using some Cocoa APIs, clean up a few related things.
2017-08-08 03:36:56 -04:00
Ryan C. Gordon
0a730433ae
Rename physfs_platform_macos.c to physfs_platform_apple.m
...
It's not really "macOS," it's all of Apple's platforms (iOS, watchOS,
tvOS...AppleCarOS? heh), and second...we're about to need access to Cocoa
APIs, so we need it to be Objective-C. I fought as long as I could. :/
2017-08-08 02:34:25 -04:00
Ryan C. Gordon
ca4d5be5f8
cmake: Pacify warning about Policy CMP0042 not being set.
2017-08-08 02:27:47 -04:00
Ryan C. Gordon
eb46d82500
Fixed compiler warnings on GCC.
2017-08-06 15:59:46 -04:00
Ryan C. Gordon
af555317b9
Fixed compiler warnings on Visual Studio.
2017-08-06 15:58:39 -04:00
Ryan C. Gordon
f0eb5c0db9
Marked a bunch of things as "FIXME-3.0" that I want resolved before 3.0 ships.
2017-08-06 15:54:44 -04:00
Ryan C. Gordon
0287160f3c
Removed some FIXMEs that aren't valid.
2017-08-06 13:56:45 -04:00
Ryan C. Gordon
1d6c519c5e
windows: Patched to compile! (...?)
2017-08-06 12:27:18 -04:00
Ryan C. Gordon
2176364a16
windows: (maybe) patched to compile on Visual Studio.
2017-08-06 12:19:33 -04:00
Ryan C. Gordon
36c51d40d1
PHYSFS_File buffering now uses size_t.
...
This lets you have the full address space but not take up unnecessary space
on 32-bit platforms...not to mention removes a bunch of typecasting.
2017-08-06 10:33:21 -04:00
Ryan C. Gordon
114bfd1b21
windows: PHYSFS_FILETYPE_OTHER files now report real filesize in PHYSFS_stat().
...
I don't know if it's _meaningful_, but if the OS reports it, so do we.
2017-08-06 09:25:05 -04:00
Ryan C. Gordon
a7ce178eec
Add basic atomic operations for refcounting, etc.
2017-08-06 09:21:38 -04:00
Ryan C. Gordon
121ee38fde
physfshttpd: deal with write errors on the socket.
2017-08-06 01:34:18 -04:00
Ryan C. Gordon
61bdee4d78
__PHYSFS_platformDeinit() should return void.
...
What are you going to do if this fails, anyhow?
2017-08-06 01:30:58 -04:00
Ryan C. Gordon
248167af40
windows: Removed (what I think is) a copy/paste error.
2017-08-05 01:26:07 -04:00
Ryan C. Gordon
be9bf023d0
windows: Use a real synchronization primitive for CD detection thread init.
...
Before we were waiting on a volatile int in a tight loop with a Sleep(50).
2017-08-05 01:24:53 -04:00
Ryan C. Gordon
befc894b1f
More FIXME cleanups.
2017-08-04 22:35:49 -04:00
Ryan C. Gordon
b6e139fc22
Make compile-time asserts more readable.
2017-08-04 22:32:57 -04:00
Ryan C. Gordon
0d249cae36
FIXME removal: This is an appropriate error code already.
2017-08-04 22:32:34 -04:00
Ryan C. Gordon
cc2c29b207
Removed FIXME: this was already fixed at some point.
2017-08-04 22:31:56 -04:00
Ryan C. Gordon
093dcb555b
os/2: Patched to compile (?).
2017-08-02 16:40:07 -04:00
Ryan C. Gordon
3f9ffddc83
os/2: attempt to get cpuid support on OpenWatcom builds.
2017-08-02 16:34:02 -04:00
Ryan C. Gordon
1e850d32ea
windows: Patched to compile.
2017-08-02 13:06:56 -04:00
Ryan C. Gordon
007c2fc037
windows: Just pass HANDLEs around instead of wrapping in a struct.
...
We don't need the "readonly" field of this struct, because it was only used
to protect flushes on non-writable handles, but PHYSFS_flush() also keeps
track of what's read-only and won't call into the platform layer anyhow.
HANDLEs are typedef'd to be "void *" on Windows, so this is safe (so long as
we check for INVALID_HANDLE_VALUE, which is ((void*)-1), when creating new
handles.
2017-08-02 13:02:43 -04:00
Ryan C. Gordon
bea510def0
windows: Fixed logic bug.
2017-08-02 12:48:40 -04:00
Ryan C. Gordon
02c2c4736e
windows: better test for WinRT vs win32 (...I think...?)
2017-08-02 12:48:31 -04:00
Ryan C. Gordon
5ab8df339d
Updated Unicode case folding support to something 10 years newer. :)
2017-07-31 16:32:47 -04:00
Ryan C. Gordon
32930ef41d
Fixed compiler warning.
2017-07-26 16:08:32 -04:00
Ryan C. Gordon
99992bb1d5
WinRT: Disable harmless (in our case) linker warning.
2017-07-26 09:03:04 -04:00
Ryan C. Gordon
0e7f3ee6a1
Added an assert for a FIXME that is now handled elsewhere.
2017-07-25 19:55:58 -04:00
Ryan C. Gordon
f578f85557
Fixed building for WinRT via CMake.
2017-07-25 19:55:08 -04:00
Ryan C. Gordon
1e2650b6fc
Serious cleanup and update of Windows RT support.
...
This compiles for WinRT, but isn't otherwise tested at all yet.
2017-07-24 03:29:33 -04:00
Ryan C. Gordon
c74f4cb007
Minor cleanup.
2017-07-24 02:37:22 -04:00
Ryan C. Gordon
a5461ddcd9
Some minor preprocessor nitpicks.
2017-07-24 02:36:58 -04:00
Ryan C. Gordon
8c13bd27d6
unix: getmntinfo() should proabably be set to MNT_NOWAIT to avoid blocking.
2017-07-22 20:05:17 -04:00
Ryan C. Gordon
bc28fb74b4
Minor QNX fix; don't warn about CD-ROM support (for now).
2017-07-22 20:04:38 -04:00
Ryan C. Gordon
e2750bff62
Apple refers to "Mac OS X" as "macOS" now.
2017-07-22 13:50:40 -04:00
Ryan C. Gordon
6d91dde273
Rename __PHYSFS_Archiver_SZIP to __PHYSFS_Archiver_7Z.
2017-07-22 13:50:03 -04:00
Ryan C. Gordon
1fa4be6f66
Minor documentation updates.
2017-07-22 13:48:31 -04:00
Ryan C. Gordon
f10b861036
A couple of fixes for physfshttpd.c.
2017-07-22 13:35:14 -04:00
Ryan C. Gordon
e75d38adf5
Fixed a comment about SDL licensing.
2017-07-22 13:22:37 -04:00
Ryan C. Gordon
ea29339a8b
Removed SWIG bindings.
2017-07-22 13:20:15 -04:00
Ryan C. Gordon
db349bd067
Update filename comments.
2017-07-22 13:19:57 -04:00
Ryan C. Gordon
18c89c1cbc
Renamed all the sources to start with "physfs_"
...
So now you can drop this into your program and not worry about filename
conflicts, or where "platform_unix.c" came from in the debugger, etc.
Also renamed the "beos" sources to "haiku" and "macosx" to "macos" to match
modern platform names.
2017-07-22 12:59:06 -04:00
Ryan C. Gordon
d9f040cb6a
Add platform_os2.c to the CMake file.
2017-07-22 12:55:50 -04:00
Ryan C. Gordon
ace324cdc8
Minor code cleanups: whitespace fixes, 80-column overflows, wrong comments.
2017-07-22 12:47:32 -04:00
Ryan C. Gordon
c1defd3ec4
vdf: Migrated to new, improved unpacked archiver infrastructure.
2017-07-22 12:42:34 -04:00
Ryan C. Gordon
eefc757398
Added some TODOs to the ISO9660 code.
2017-07-22 12:16:37 -04:00
Ryan C. Gordon
6ed2bf1478
Some improvements to INSTALL.txt.
2017-07-21 23:02:10 -04:00
Ryan C. Gordon
8ee7f5d351
Fixed compiler warnings.
2017-07-21 22:38:50 -04:00