C# Class MTMCL.Forge.ForgeInstaller

Mostra file Open project: cvronmin/metocraft

Private Properties

Property Type Description
CopyAndStrip void
CopyEntry void
CopyEntry void
ReadEntry byte[]
ReadFully byte[]
checksumsValid bool
downloadFileETag bool
downloadInstalledLibrary void
hashMD5 string
hashSHA1 string
unpackLibrary void
validateJar bool

Public Methods

Method Description
downloadFile ( string libName, string libPath, string libURL, List checksums ) : bool
install ( string target ) : bool
installOld ( string target, string mcversion, string forgeversion ) : bool

Private Methods

Method Description
CopyAndStrip ( string source, string target ) : void
CopyEntry ( FileInfo src, FileInfo target ) : void
CopyEntry ( FileInfo source, ZipOutputStream target ) : void
ReadEntry ( ZipFile file, ZipEntry entry ) : byte[]
ReadFully ( Stream input ) : byte[]
checksumsValid ( FileInfo file, List sums ) : bool
downloadFileETag ( string url, string file ) : bool
downloadInstalledLibrary ( ForgeInstall info, DirectoryInfo dir, List grabbed, List bad ) : void
hashMD5 ( byte data ) : string
hashSHA1 ( byte data ) : string
unpackLibrary ( FileInfo input, FileInfo output ) : void
validateJar ( FileInfo file, byte data, List sums ) : bool

Method Details

downloadFile() public method

public downloadFile ( string libName, string libPath, string libURL, List checksums ) : bool
libName string
libPath string
libURL string
checksums List
return bool

install() public method

public install ( string target ) : bool
target string
return bool

installOld() public method

public installOld ( string target, string mcversion, string forgeversion ) : bool
target string
mcversion string
forgeversion string
return bool