Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing with 28 additions and 47 deletions.
- +28 −47 src/physfs_platform_windows.c
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters