Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Brl.IO] Any chance to support mounting "zstd" files? #353

Open
GWRon opened this issue Jan 2, 2025 · 3 comments
Open

[Brl.IO] Any chance to support mounting "zstd" files? #353

GWRon opened this issue Jan 2, 2025 · 3 comments

Comments

@GWRon
Copy link
Contributor

GWRon commented Jan 2, 2025

PHYSFS_mount allows to mount zip-files.

@woollybah do you see any "simple to do" chance to wrap things in a way that you can mount zstd compressed files?

Asking as my savegame is for now an xml file which I compress with zstd for speed and size's sake. Now I thought about splitting things into pieces (to eg only load certain elements ... ). One option would be to ignore certain nodes in the XML file (TPersist...). Another one would be to store various files and only load some one them. This would also allow to store other file formats without having to "encode" them (base64) for xml-compatibility first.

If this is not something doable without too many efforts, then just mention it and I will try to find other ways to achieve the above described "separation".

@woollybah
Copy link
Member

Well, zip and zstd are not the same thing. One is a compression method, the other packs files together.

@GWRon
Copy link
Contributor Author

GWRon commented Jan 2, 2025

You are right.

Zip is the container. But can physfs be enabled to work with "zip" using (can it?) the zstd compression algorithm?

@GWRon
Copy link
Contributor Author

GWRon commented Jan 2, 2025

I guess it would mean (indirectly) to have archive.mod-functionality supported by physfs.
(TReadArchive -> PhysFS).

Guess there is no easy route for it. If you think the same, simply close the issue. If you feel like trying out things, drop a line :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants