C# Class GameLoader.IO.GameController

Enables and disable games. Also emits events when done
Afficher le fichier Open project: zlepper/GameLoader Class Usage Examples

Méthodes publiques

Méthode Description
CalculateMd5 ( string file ) : string
DisableGame ( Game game ) : void
EnableGame ( Game game ) : void

Méthodes protégées

Méthode Description
OnDoneDisablingGame ( Game game ) : void
OnDoneEnablingGame ( Game game ) : void
OnDoneMovingFiles ( ) : void
OnGameMoveProgress ( int progress, int count ) : void
OnStartMovingFiles ( ) : void

Private Methods

Méthode Description
BackgroundWorkerLoadGame ( object sender, DoWorkEventArgs doWorkEventArgs ) : void
BackgroundWorkerUnloadGame ( object sender, DoWorkEventArgs doWorkEventArgs ) : void
CalculateOutputFilePath ( DirectoryInfo outputDirectory, FileInfo file, DirectoryInfo inputDirectory ) : string
CalculateOutputFilePath ( string outputDirectory, FileInfo file, DirectoryInfo inputDirectory ) : string
CreateDirectoryJunction ( string sourceDirectory, string destinationDirectory ) : void
GetTotalFreeSpace ( string driveName ) : long
HasEnoughSpaceOnFastDrive ( Game game ) : bool
HasEnoughSpaceOnGameDrive ( Game game ) : bool
LoadGame ( Game game ) : void
PathCombine ( string path1, string path2 ) : string
UnloadGame ( Game game ) : void

Method Details

CalculateMd5() public static méthode

public static CalculateMd5 ( string file ) : string
file string
Résultat string

DisableGame() public méthode

public DisableGame ( Game game ) : void
game GameLoader.Game
Résultat void

EnableGame() public méthode

public EnableGame ( Game game ) : void
game GameLoader.Game
Résultat void

OnDoneDisablingGame() protected méthode

protected OnDoneDisablingGame ( Game game ) : void
game GameLoader.Game
Résultat void

OnDoneEnablingGame() protected méthode

protected OnDoneEnablingGame ( Game game ) : void
game GameLoader.Game
Résultat void

OnDoneMovingFiles() protected méthode

protected OnDoneMovingFiles ( ) : void
Résultat void

OnGameMoveProgress() protected méthode

protected OnGameMoveProgress ( int progress, int count ) : void
progress int
count int
Résultat void

OnStartMovingFiles() protected méthode

protected OnStartMovingFiles ( ) : void
Résultat void