Ejemplo n.º 1
0
        public static Stream GetFile(ulong hash)
        {
            Stream file = Mpq.GetFile(hash);

            if (file == null)
            {
                throw new FileNotFoundException("Unable to find " + hash);
            }
            return(file);
        }
Ejemplo n.º 2
0
        public static Stream GetFile(string path)
        {
            Stream file = Mpq.GetFile(path);

            if (file == null)
            {
                throw new FileNotFoundException("Unable to find " + path);
            }
            return(file);
        }
Ejemplo n.º 3
0
        public static Stream GetFile(uint fileId)
        {
            Stream file = Mpq.GetFile(fileId);

            if (file == null)
            {
                throw new FileNotFoundException("Unable to find " + fileId);
            }
            return(file);
        }
Ejemplo n.º 4
0
        public static DBC GetDBC(string name)
        {
            string path = "DBFilesClient\\" + name + ".db2";

            return(new DBC(Mpq.GetFile(path)));
        }