A .NET Standard wrapper around the PhysFS IO library
Go to file
Francesco Bertolaccini 1e3c2be295 Update project version 2017-04-14 17:23:21 +02:00
SharpPhysFS Update project version 2017-04-14 17:23:21 +02:00
Test Interop is no more static, so we have to provide an instance to SetValue... Oops! 2016-02-08 22:28:02 +01:00
.editorconfig Added .editorconfig 2017-04-12 20:03:44 +02:00
.gitattributes Initial commit to add default .gitIgnore and .gitAttribute files. 2016-01-27 18:57:32 +01:00
.gitignore Initial commit to add default .gitIgnore and .gitAttribute files. 2016-01-27 18:57:32 +01:00
CHANGELOG.md Updated CHANGELOG 2017-04-12 20:54:48 +02:00
LICENSE.md Added README and LICENSE files 2016-01-27 19:05:23 +01:00
README.md Updated README 2017-04-12 20:51:25 +02:00
SharpPhysFS.sln Added .editorconfig 2017-04-12 20:03:44 +02:00

README.md

SharpPhysFS

PhysicsFS wrapper for .NET

This library is a wrapper around the PhysFS library designed to work with .NET languages. As such, it employs standard .NET behaviors such as Exceptions and IEnumerables to represent native objects. It also provides access to the underlying low-level methods and a Stream subclass for easy use of the APIs.

The documentation for the methods is copied from the original doxygen and only slightly adapted.

Platform support

The library is designed to work regardless of the underlying OS, so it should run on Windows, Linux and OSX equally well. I haven't tested the OSX port though, and I only superficially tried it on Linux.

If anyone feels so inclined, he/she could contribute by testing it and reporting the results. This would be greatly appreciated.

Installation

You can use this library by compiling it as described in the wiki or by adding it as a reference using NuGet:

Install-Package SharpPhysFS

You should also include compiled shared library of physfs alongside your binary files to be loaded.

Usage

using(var pfs = new PhysFS("")) // This ensures correct initialization and deinitialization
using(var stream = pfs.OpenRead("/helloworld.txt"))
{
  var reader = new StreamReader(stream);
  var contents = reader.ReadToEnd();
}

Support on Beerpay

Hey dude! Help me out for a couple of 🍻!

Beerpay Beerpay