KelvinShadewing / brux-gdk

Free runtime and development kit using SDL and Squirrel
GNU Affero General Public License v3.0
39 stars 20 forks source link

Implement PhysicsFS support #47

Closed Vankata453 closed 1 year ago

Vankata453 commented 1 year ago

Implements the PhysicsFS library into Brux. It provides a "search path", which exposes only selected directories to be allowed to be modified by the application. With the help of PhysicsFS, a few new functions have been added, as well as a way to have the game files stored at the appropriate for the system application data folder.

By default, Brux uses the brux (or brux/brux) folder, relative to the application data folder of the system, for writing. Games can change this directory by using setWriteDir(). The intended way of setting it is setWriteDir(getPrefDir({org}, {app})), which will make the game use an org/app directory, relative to the application data folder of the system, for writing.

TODO: Document new/modified functions. [DONE]

Closes #46.

tulpenkiste commented 1 year ago

Very nice. I give this a 🐧/🐧