C# 클래스 KFreonLib.Misc.Methods

Provides miscellaneous methods for general tools.
파일 보기 프로젝트 열기: ME3Explorer/ME3Explorer

공개 메소드들

메소드 설명
CheckGameState ( MEDirectories MEExDirecs, bool askIfNotFound, List &messages ) : List
DisplayYesNoDialogBox ( string message, string title ) : bool

Displays a Yes/No dialog box with customizable title and prompt. Returns true or false.

EnumerateGameFiles ( int GameVersion, List files, Predicate predicate = null ) : List
EnumerateGameFiles ( int GameVersion, string searchPath, bool recurse = true, Predicate predicate = null ) : List

Enumerates the given game folder using a filter.

FindInStack ( string FrameName ) : bool

Find a string in the stackframes. I use it to find calling functions.

GetDLCNameFromPath ( string path ) : string

Returns name of DLC if path is part of a DLC.

GetExecutingLoc ( ) : string

Returns path of executing program.

GetInstalledDLC ( string DLCBasePath ) : List
GetMEType ( ) : int

Returns which game has called this function. For use to figure out calling functions

GetNumCores ( ) : int

Gets number of processor cores without hyperthreading.

RunShell ( string cmd, string args ) : void

Runs commands in a shell. (WV's code I believe)

SelectGameLoc ( int GameVers ) : string

Gets user input to select a game exe.

SetGamePath ( int GameVers, string path ) : void

Sets the BIOGame path in the MEDirectory classes.

SetNumThreads ( bool User ) : int

Sets number of threads in a program.

메소드 상세

CheckGameState() 공개 정적인 메소드

public static CheckGameState ( MEDirectories MEExDirecs, bool askIfNotFound, List &messages ) : List
MEExDirecs KFreonLib.MEDirectories.MEDirectories
askIfNotFound bool
messages List
리턴 List

DisplayYesNoDialogBox() 공개 정적인 메소드

Displays a Yes/No dialog box with customizable title and prompt. Returns true or false.
public static DisplayYesNoDialogBox ( string message, string title ) : bool
message string Message prompt to display.
title string Window title to use.
리턴 bool

EnumerateGameFiles() 공개 정적인 메소드

public static EnumerateGameFiles ( int GameVersion, List files, Predicate predicate = null ) : List
GameVersion int
files List
predicate Predicate
리턴 List

EnumerateGameFiles() 공개 정적인 메소드

Enumerates the given game folder using a filter.
public static EnumerateGameFiles ( int GameVersion, string searchPath, bool recurse = true, Predicate predicate = null ) : List
GameVersion int Version of game being searched.
searchPath string Path to search.
recurse bool
predicate Predicate
리턴 List

FindInStack() 공개 정적인 메소드

Find a string in the stackframes. I use it to find calling functions.
public static FindInStack ( string FrameName ) : bool
FrameName string FrameName to find.
리턴 bool

GetDLCNameFromPath() 공개 정적인 메소드

Returns name of DLC if path is part of a DLC.
public static GetDLCNameFromPath ( string path ) : string
path string Path to search for DLC names in.
리턴 string

GetExecutingLoc() 공개 정적인 메소드

Returns path of executing program.
public static GetExecutingLoc ( ) : string
리턴 string

GetInstalledDLC() 공개 정적인 메소드

public static GetInstalledDLC ( string DLCBasePath ) : List
DLCBasePath string
리턴 List

GetMEType() 공개 정적인 메소드

Returns which game has called this function. For use to figure out calling functions
public static GetMEType ( ) : int
리턴 int

GetNumCores() 공개 정적인 메소드

Gets number of processor cores without hyperthreading.
public static GetNumCores ( ) : int
리턴 int

RunShell() 공개 정적인 메소드

Runs commands in a shell. (WV's code I believe)
public static RunShell ( string cmd, string args ) : void
cmd string Commands to run.
args string Arguments to give to commands.
리턴 void

SelectGameLoc() 공개 정적인 메소드

Gets user input to select a game exe.
public static SelectGameLoc ( int GameVers ) : string
GameVers int Game to select.
리턴 string

SetGamePath() 공개 정적인 메소드

Sets the BIOGame path in the MEDirectory classes.
public static SetGamePath ( int GameVers, string path ) : void
GameVers int Which game to set path of.
path string New BIOGame path.
리턴 void

SetNumThreads() 공개 정적인 메소드

Sets number of threads in a program.
public static SetNumThreads ( bool User ) : int
User bool True if dialog required.
리턴 int