C# Class OpenRA.Mods.Common.InstallUtils

显示文件 Open project: cjshmyr/OpenRA

Public Methods

Method Description
CopyFiles ( string srcPath, string[]>.Dictionary files, string destPath, bool overwrite, OpenRA.Mods.Common.ContentInstaller caseModifier, Action onProgress, Action onError ) : bool
ExtractFromPackage ( FileSystem fileSystem, string srcPath, string package, string[]>.Dictionary filesByDirectory, string destPath, bool overwrite, OpenRA.Mods.Common.ContentInstaller caseModifier, Action onProgress, Action onError ) : bool
ExtractZip ( string zipFile, string dest, Action onProgress, Action onError ) : bool
GetMountedDisk ( bool>.Func isValidDisk ) : string

Private Methods

Method Description
ExtractZip ( this z, string destPath, List extracted, Action onProgress ) : void
GetEntries ( this z ) : IEnumerable
GetFileName ( string path, OpenRA.Mods.Common.ContentInstaller caseModifier ) : string

Method Details

CopyFiles() public static method

public static CopyFiles ( string srcPath, string[]>.Dictionary files, string destPath, bool overwrite, OpenRA.Mods.Common.ContentInstaller caseModifier, Action onProgress, Action onError ) : bool
srcPath string
files string[]>.Dictionary
destPath string
overwrite bool
caseModifier OpenRA.Mods.Common.ContentInstaller
onProgress Action
onError Action
return bool

ExtractFromPackage() public static method

public static ExtractFromPackage ( FileSystem fileSystem, string srcPath, string package, string[]>.Dictionary filesByDirectory, string destPath, bool overwrite, OpenRA.Mods.Common.ContentInstaller caseModifier, Action onProgress, Action onError ) : bool
fileSystem FileSystem
srcPath string
package string
filesByDirectory string[]>.Dictionary
destPath string
overwrite bool
caseModifier OpenRA.Mods.Common.ContentInstaller
onProgress Action
onError Action
return bool

ExtractZip() public static method

public static ExtractZip ( string zipFile, string dest, Action onProgress, Action onError ) : bool
zipFile string
dest string
onProgress Action
onError Action
return bool

GetMountedDisk() public static method

public static GetMountedDisk ( bool>.Func isValidDisk ) : string
isValidDisk bool>.Func
return string