downloadAndExtract
fun downloadAndExtract(gitRepoUrl: String, defaultBranch: String, folderFileHandle: FileHandle): FileHandle?
Content copied to clipboard
Download a mod and extract, deleting any pre-existing version.
Author
Warning: This took a long time to get just right, so if you're changing this, TEST IT THOROUGHLY on both Desktop and Phone
Return
FileHandle for the downloaded Mod's folder or null if download failed
Parameters
gitRepoUrl
Url of the repository as delivered by the Github search query
defaultBranch
Branch name as delivered by the Github search query
folderFileHandle
Destination handle of mods folder - also controls Android internal/external
Sources
jvm source
Link copied to clipboard