C# Class GameLoader.IO.GameController

Enables and disable games. Also emits events when done
Datei anzeigen Open project: zlepper/GameLoader Class Usage Examples

Public Methods

Method Description
CalculateMd5 ( string file ) : string
DisableGame ( Game game ) : void
EnableGame ( Game game ) : void

Protected Methods

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

Private Methods

Method 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 method

public static CalculateMd5 ( string file ) : string
file string
return string

DisableGame() public method

public DisableGame ( Game game ) : void
game GameLoader.Game
return void

EnableGame() public method

public EnableGame ( Game game ) : void
game GameLoader.Game
return void

OnDoneDisablingGame() protected method

protected OnDoneDisablingGame ( Game game ) : void
game GameLoader.Game
return void

OnDoneEnablingGame() protected method

protected OnDoneEnablingGame ( Game game ) : void
game GameLoader.Game
return void

OnDoneMovingFiles() protected method

protected OnDoneMovingFiles ( ) : void
return void

OnGameMoveProgress() protected method

protected OnGameMoveProgress ( int progress, int count ) : void
progress int
count int
return void

OnStartMovingFiles() protected method

protected OnStartMovingFiles ( ) : void
return void