C# Класс Ultima.Files

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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