C# 클래스 Nexus.Client.Games.InstallationPathAutoDetector

This task searched the user's computer for the specified installation path.
The task is given specific file names for which to search that indicate the installation path being sought.
상속: ThreadedBackgroundTask
파일 보기 프로젝트 열기: NexusMods/NexusModManager-4.5

공개 메소드들

메소드 설명
Detect ( string p_strSearchFiles ) : void

Finds the installation path.

InstallationPathAutoDetector ( bool>.System p_fncConfirmFoundInstallationPath ) : System

A simple constructor that initializes the object with the given values.

보호된 메소드들

메소드 설명
DoWork ( object p_objArgs ) : object

The delegate that is called to start the backgound task.

SearchToDepth ( string p_strPath, string p_strSearchFiles, Int32 p_intMaxDepth, Int32 p_intDepth ) : string

This recursively searches the specified directory for the search files.

메소드 상세

Detect() 공개 메소드

Finds the installation path.
public Detect ( string p_strSearchFiles ) : void
p_strSearchFiles string The files to search for when auto-detecting.
리턴 void

DoWork() 보호된 메소드

The delegate that is called to start the backgound task.
protected DoWork ( object p_objArgs ) : object
p_objArgs object the files to search for.
리턴 object

InstallationPathAutoDetector() 공개 메소드

A simple constructor that initializes the object with the given values.
public InstallationPathAutoDetector ( bool>.System p_fncConfirmFoundInstallationPath ) : System
p_fncConfirmFoundInstallationPath bool>.System The delegate to call to confirm if a found path /// is correct.
리턴 System

SearchToDepth() 보호된 메소드

This recursively searches the specified directory for the search files.
protected SearchToDepth ( string p_strPath, string p_strSearchFiles, Int32 p_intMaxDepth, Int32 p_intDepth ) : string
p_strPath string The path of the direcotry to recursively search.
p_strSearchFiles string The files to search for when auto-detecting.
p_intMaxDepth System.Int32 The depth to hich the search for the search files.
p_intDepth System.Int32 The current search depth.
리턴 string