public static Stream GetFile(ulong hash) { Stream file = Mpq.GetFile(hash); if (file == null) { throw new FileNotFoundException("Unable to find " + hash); } return(file); }
public static Stream GetFile(string path) { Stream file = Mpq.GetFile(path); if (file == null) { throw new FileNotFoundException("Unable to find " + path); } return(file); }
public static Stream GetFile(uint fileId) { Stream file = Mpq.GetFile(fileId); if (file == null) { throw new FileNotFoundException("Unable to find " + fileId); } return(file); }
public static DBC GetDBC(string name) { string path = "DBFilesClient\\" + name + ".db2"; return(new DBC(Mpq.GetFile(path))); }