You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
continuous-integration/drone/push Build is passing
Details
|
3 years ago | |
---|---|---|
.vscode | 3 years ago | |
NETPhysFS | 3 years ago | |
UnitTests | 3 years ago | |
.drone.yml | 3 years ago | |
.editorconfig | 6 years ago | |
.gitattributes | 7 years ago | |
.gitignore | 3 years ago | |
CHANGELOG.md | 6 years ago | |
LICENSE | 3 years ago | |
NETPhysFS.sln | 3 years ago | |
README.md | 3 years ago |
README.md
MoonTools.NETPhysFS
PhysFS wrapper for .NET Standard
This library is a .NET Standard wrapper around the cross-platform IO libary PhysFS. It provides IEnumerable iterators to avoid creating garbage, and a Stream subclass for easy usage.
Installation
You can use this library by adding it as a submodule and then referencing it in your .csproj file.
git submodule add https://gitea.moonside.games/MoonsideGames/MoonTools.NETPhysFS.git
You must also include a compiled binary of PhysFS for your platform for this to work properly.
Example
using var pfs = new PhysFS(""); // automatic dispose pattern
using (var reader = new StreamReader(pfs.OpenRead("/helloworld.txt")))
{
var contents = reader.ReadToEnd();
}
Acknowledgements
This project was forked from the very helpful SharpPhysFS by Francesco Bertolaccini.