metherul / Automaton

The open modpack platform.
Other
59 stars 14 forks source link

Switch to a 7zip Wrapper, and a new method for extracting files #43

Closed halgari closed 5 years ago

halgari commented 5 years ago

Switches to a NuGet 7zip wrapper. In order to handle SOLID files efficiently, we start the extraction process by compiling a dictionary of all the source files we want to copy out of the archive. Then we use that as a filter to extract the files from the archive in one swoop. In essence this is an inversion-of-control. We no longer the library what files we want to extract, instead the library calls us with each file name, and we return an extraction path to extract the file, or null to ignore it.

metherul commented 5 years ago

Fantastic implementation. Thank you for your contribution!