Closed joshuaskelly closed 3 years ago
Allows for mod assets to be loaded from inside a zip file. Implements #236
ZipFileHandler
Game.getInternal()
ZipFileHander
assets.zip
Game.resolveFile()
I've currently only tested this with the Guns mod zipped up and put in my repo's mod folder.
Discussed this on Discord. Issue with list and order of folder resolvment.
list
Closing for now. The biggest blocker is that write support is needed by the ScriptLoader.
Summary
Allows for mod assets to be loaded from inside a zip file. Implements #236
Changes
ZipFileHandler
classGame.getInternal()
to detect if a zip file is part of the path and returns aZipFileHander
object.assets.zip
fileGame.getInternal()
Game.getInternal()
toGame.resolveFile()
Testing
I've currently only tested this with the Guns mod zipped up and put in my repo's mod folder.