C# Class Ultima.Files

Afficher le fichier Open project: polserver/poltools Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
Files ( ) : System
GetPath ( string regkey ) : string
LoadDirectory ( ) : string

Method Details

CheckForNewMapSize() public static méthode

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

CompareHashFile() public static méthode

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
Résultat bool

CompareMD5() public static méthode

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

FireFileSaveEvent() public static méthode

public static FireFileSaveEvent ( ) : void
Résultat void

GetFilePath() public static méthode

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

GetMD5() public static méthode

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

LoadMulPath() public static méthode

Fills MulPath with Files.Directory
public static LoadMulPath ( ) : void
Résultat void

ReLoadDirectory() public static méthode

ReReads Registry Client dir
public static ReLoadDirectory ( ) : void
Résultat void

SetMulPath() public static méthode

ReSets MulPath with given path
public static SetMulPath ( string path ) : void
path string
Résultat void

SetMulPath() public static méthode

Sets MulPath key to path
public static SetMulPath ( string path, string key ) : void
path string
key string
Résultat void