C# Class GameLoader.GameSuggestions

Mostra file Open project: zlepper/GameLoader Class Usage Examples

Public Methods

Method Description
GetGameFolders ( ) : string[]

Gets possible game locations

GetGameFolders ( DirectoryInfo dir ) : string[]
GetGameFolders ( string dir ) : string[]

Private Methods

Method Description
CheckFolder ( DirectoryInfo folder, List libraryLocations ) : bool

Checks if a folder match any know game library names

FindGalaxyClientFolder ( DirectoryInfo folder ) : string

Special formatter for the GOG client

FindOtherGameFolders ( ) : string[]

Checks all the drives on the computer for game locations

FindSteamCommonsFolder ( DirectoryInfo folder ) : string

Special formatter for the Steam client

FindUbisoftFolder ( DirectoryInfo folder ) : string

Special formatter for the ubisoft client

PathCombine ( string path1, string path2 ) : string
ScanRecursive ( int current, int max, List libraryLocations, DirectoryInfo folder ) : void

Check a folder for valid game folders, and adds them to the list And if not at the max level yet, scans sub folders

Method Details

GetGameFolders() public static method

Gets possible game locations
public static GetGameFolders ( ) : string[]
return string[]

GetGameFolders() public static method

public static GetGameFolders ( DirectoryInfo dir ) : string[]
dir System.IO.DirectoryInfo
return string[]

GetGameFolders() public static method

public static GetGameFolders ( string dir ) : string[]
dir string
return string[]