alienari / bitfighter

Automatically exported from code.google.com/p/bitfighter
Other
0 stars 0 forks source link

Load game resources from a system dir and a user dir #446

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
We should be able to load system resources from both the installed resources 
directory and a user preferences directory; e.g.  /usr/share/bitfighter/ and 
$HOME/.bitfighter/

This will make is so copying game resources to the user directory is unneeded 
upon first launch.

We could use a library like physfs or something similar to create a virtual 
filesystem that aggregates resources into a single virtual directory..  or 
write our own.

Original issue reported on code.google.com by buckyballreaction on 28 Jun 2014 at 2:22

GoogleCodeExporter commented 9 years ago
physfs looks pretty awesome.  I'm all for using it.  It supports all the 
platforms we support, and would make it easier to support distributing files in 
zip format.

Original comment by watusim...@bitfighter.org on 25 Feb 2015 at 7:51

GoogleCodeExporter commented 9 years ago
Physfs is now (somewhat) integrated, or at least available.  It does not really 
help solve the problem outlined here, unless I misunderstand what we're trying 
to achieve.  I thought it was to get rid of the standalone.txt, but on 
rereading it, I may be wrong.

So... I'm going to close this for now, as I've done what I can do with this.  
Please reopen it if you want to clarify.

Original comment by watusim...@bitfighter.org on 6 Jun 2015 at 4:21