C# Class Ultima.Files

Mostrar archivo Open project: polserver/poltools Class Usage Examples

Public Methods

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

Private Methods

Method Description
Files ( ) : System
GetPath ( string regkey ) : string
LoadDirectory ( ) : string

Method Details

CheckForNewMapSize() public static method

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

CompareHashFile() public static method

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
return bool

CompareMD5() public static method

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

FireFileSaveEvent() public static method

public static FireFileSaveEvent ( ) : void
return void

GetFilePath() public static method

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

GetMD5() public static method

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

LoadMulPath() public static method

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

ReLoadDirectory() public static method

ReReads Registry Client dir
public static ReLoadDirectory ( ) : void
return void

SetMulPath() public static method

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

SetMulPath() public static method

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