You mean open source it? I haven't thought that far yet. Perhaps it would make a better entry for the competition?Wololo wrote:I'm wondering if it could be added as an extension to OSLib...
Needless to say there's limits to what you should do with a modest plugin manager.
It was intended for data files to be embedded in applications. And unlike bin2o, data can be deallocated. Save games, configuration files etc. is something I feel should be stored externally as it's good practice.I'm probably dreaming here, but does it allow write access as well? (sounds dangerous, but oh well...)
It would be easy to add write support that lets you overwrite files, but not expand them (I might just add that).
However, the cpio format is not suitable for expanding (or shrinking) files in size, as it requires file content to be continuous and not fragmented. To support this kind of access one has to use a storage format that allows for file content to be fragmented, such as FAT, EXT2, ISO9660 etc. Indeed my initial idea was to use ISO9660, but I landed on cpio because it is lightweight and the format is easy (tar would have been a good candidate too). Supporting ISO9960 would have been quite a chore even using a library, it also adds quite a bit of overhead. If I were to create an embeddable filesystem I probably would have used Minix for the sake of simplicity and that tools already exist for it.