C# Class OpenRA.Mods.Common.InstallUtils

Afficher le fichier Open project: cjshmyr/OpenRA

Méthodes publiques

Méthode 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

Méthode 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 méthode

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
Résultat bool

ExtractFromPackage() public static méthode

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
Résultat bool

ExtractZip() public static méthode

public static ExtractZip ( string zipFile, string dest, Action onProgress, Action onError ) : bool
zipFile string
dest string
onProgress Action
onError Action
Résultat bool

GetMountedDisk() public static méthode

public static GetMountedDisk ( bool>.Func isValidDisk ) : string
isValidDisk bool>.Func
Résultat string