-
Notifications
You must be signed in to change notification settings - Fork 125
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
AssetSys: Mount from Memory #53
Comments
Since it’s using minizip mounting a zip file from memory could be fairly easy. But for folders it would be significantly more work |
If someone made a PR for it, I wouldn’t mind adding it (assuming it’s done in a way consistent with the library overall), but it’s not something I’d have the time to do myself |
RobLoach
added a commit
to RobLoach/libs
that referenced
this issue
Sep 3, 2023
This change attempts to tackle mattiasgustavsson#53 and adds a `assetsys_mount_data()` function to mount data from an archive data buffer. This paves the path to allow disabling STDIO, and cases in which the target already has the file loaded into memory. It splits the `assetsys_mount()` into two different internal functions to save on code duplication. These functions may or may not be named correctly: - `assetsys_internal_create_mount()`: Prepares a new mount for the assetsys instance - `assetsys_internal_mount_zip(): Iterates through the mount system and indexes the files
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Would be awesome to have a
assetsys_mount_memory()
or similar to mount from an already loaded file data.Would this be out of scope for assetsys?
The text was updated successfully, but these errors were encountered: