C# 클래스 Ultima.Files

파일 보기 프로젝트 열기: polserver/poltools 1 사용 예제들

공개 메소드들

메소드 설명
CheckForNewMapSize ( ) : void

Checks if map1.mul exists and sets Ultima.Map

CompareHashFile ( string what, string path ) : bool

Compares MD5 hash from given mul file with hash in responsible hash-file

CompareMD5 ( string file, string hash ) : bool

Compares given MD5 hash with hash of given file

FireFileSaveEvent ( ) : void
GetFilePath ( string file ) : string

Looks up a given file in Files.MulPath

GetMD5 ( string file ) : byte[]

Returns MD5 hash from given file

LoadMulPath ( ) : void

Fills MulPath with Files.Directory

ReLoadDirectory ( ) : void

ReReads Registry Client dir

SetMulPath ( string path ) : void

ReSets MulPath with given path

SetMulPath ( string path, string key ) : void

Sets MulPath key to path

비공개 메소드들

메소드 설명
Files ( ) : System
GetPath ( string regkey ) : string
LoadDirectory ( ) : string

메소드 상세

CheckForNewMapSize() 공개 정적인 메소드

Checks if map1.mul exists and sets Ultima.Map
public static CheckForNewMapSize ( ) : void
리턴 void

CompareHashFile() 공개 정적인 메소드

Compares MD5 hash from given mul file with hash in responsible hash-file
public static CompareHashFile ( string what, string path ) : bool
what string
path string
리턴 bool

CompareMD5() 공개 정적인 메소드

Compares given MD5 hash with hash of given file
public static CompareMD5 ( string file, string hash ) : bool
file string
hash string
리턴 bool

FireFileSaveEvent() 공개 정적인 메소드

public static FireFileSaveEvent ( ) : void
리턴 void

GetFilePath() 공개 정적인 메소드

Looks up a given file in Files.MulPath
public static GetFilePath ( string file ) : string
file string
리턴 string

GetMD5() 공개 정적인 메소드

Returns MD5 hash from given file
public static GetMD5 ( string file ) : byte[]
file string
리턴 byte[]

LoadMulPath() 공개 정적인 메소드

Fills MulPath with Files.Directory
public static LoadMulPath ( ) : void
리턴 void

ReLoadDirectory() 공개 정적인 메소드

ReReads Registry Client dir
public static ReLoadDirectory ( ) : void
리턴 void

SetMulPath() 공개 정적인 메소드

ReSets MulPath with given path
public static SetMulPath ( string path ) : void
path string
리턴 void

SetMulPath() 공개 정적인 메소드

Sets MulPath key to path
public static SetMulPath ( string path, string key ) : void
path string
key string
리턴 void