This repository was archived by the owner on Nov 13, 2024. It is now read-only.
On ZIP files #17
rphsoftware
started this conversation in
General
Replies: 1 comment 1 reply
|
Additionally, by using a different ZIP parsing library we could implement this entire proposal without ever loading the whole file into memory, just metadata. ( https://www.npmjs.com/package/node-stream-zip allows to enumerate entires without loading the whole file, and afterwards using |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
GOMORI's current handling of ZIP files seems to have been implemented in a bit of a janky way.
This proposal aims to create a cleaner way of handling mods inside ZIP files, and builds on top of a Virtual FileSystem concept proposed in #15
By reading the Table of Contents from the zip file, mounting the root folder of the zip folder in the mods/ folder, and shadowing away the actual .zip file, we can provide gomori with a view of the mods folder as if every mod was unpacked, which greatly reduces mod loading complexity, by treating each mod as a mere folder.
Please give feedback on this idea
All reactions