Hello,
I'm looking into making a resource manager or the likes and I was looking for a library to provide a virtual filesystem. Naturally Boost is the first place I look and I found the 'filesystem' library.
I am simply interested in hearing of what other users have experienced with this library and/or know of other similiar libraries to look into, maybe even a fully-fledged resource-manager library.
Thanks
EDIT: C++
Opinions on Boost filesystem?
That depends on what you want from a virtual filesystem. If, for example, you want the ability to treat the contents of a zip file like a regular directory, then boost::filesystem won't be much help, but you might consider PhysFS instead. On the other hand, if the only thing you want is to separate out platform specific directory browsing functions then boost::filesystem works just fine.
The PAK format was used since the days of Quake, is there any benefits to roll your own or using another resource format?
Unless you have extremely unusual requirements, there isn't much reason to roll your own package format right now. There are a sufficient number floating around that it wouldn't be too hard to find a format that suits your needs that would already have reader and writer code already programmed, debugged and available. I generally just use renamed zip files since tools and code that work with them are ubiquitous.
The PAK format was used since the days of Quake, is there any benefits to roll your own or using another resource format?
PAK has some strict limitations on filenames I believe, since it was made for back when you could get away with short filenames (I think the limit was 56 characters per file). Also they have a dated limit on filesize (if I recall correctly PAK files can't be larger than 4GB total), and don't support compression.
But yeah, there isn't much point on making your own format when you could just use ZIP or 7Z and maybe change the extension.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement