示例#1
0
        protected BinaryReader OpenRootFile(EncodingHandler enc, CASCHandlerBase casc)
        {
            if (!enc.GetEntry(casc.Config.RootMD5, out EncodingEntry encInfo))
            {
                throw new FileNotFoundException("encoding info for root file missing!");
            }

            //ExtractFile(encInfo.Key, ".", "root");

            return(new BinaryReader(casc.OpenFile(encInfo.Key)));
        }
示例#2
0
        protected BinaryReader OpenDownloadFile(EncodingHandler enc, CASCHandlerBase casc)
        {
            var encInfo = enc.GetEntry(casc.Config.DownloadMD5);

            if (encInfo == null)
            {
                throw new FileNotFoundException("encoding info for download file missing!");
            }

            //ExtractFile(encInfo.Key, ".", "download");

            return(new BinaryReader(casc.OpenFile(encInfo.Key)));
        }
示例#3
0
        protected static BinaryReader OpenInstallFile(EncodingHandler enc, CASCHandlerBase casc)
        {
            var encInfo = enc.GetEntry(casc.Config.InstallMD5);

            if (encInfo == null)
            {
                throw new FileNotFoundException("encoding info for install file missing!");
            }

            //ExtractFile(encInfo.Key, ".", "install");

            return(new BinaryReader(casc.OpenFile(encInfo.Key)));
        }
示例#4
0
        protected BinaryReader OpenEncodingFile(CASCHandlerBase casc)
        {
            //ExtractFile(Config.EncodingKey, ".", "encoding");

            return(new BinaryReader(casc.OpenFile(casc.Config.EncodingKey)));
        }
示例#5
0
        protected BinaryReader OpenEncodingFile(CASCHandlerBase casc)
        {
            //ExtractFile(Config.EncodingKey, ".", "encoding");

            return new BinaryReader(casc.OpenFile(casc.Config.EncodingKey));
        }
示例#6
0
        protected BinaryReader OpenRootFile(EncodingHandler enc, CASCHandlerBase casc)
        {
            EncodingEntry encInfo;

            if (!enc.GetEntry(casc.Config.RootMD5, out encInfo))
                throw new FileNotFoundException("encoding info for root file missing!");

            //ExtractFile(encInfo.Key, ".", "root");

            return new BinaryReader(casc.OpenFile(encInfo.Key));
        }
示例#7
0
        protected BinaryReader OpenDownloadFile(EncodingHandler enc, CASCHandlerBase casc)
        {
            var encInfo = enc.GetEntry(casc.Config.DownloadMD5);

            if (encInfo == null)
                throw new FileNotFoundException("encoding info for download file missing!");

            //ExtractFile(encInfo.Key, ".", "download");

            return new BinaryReader(casc.OpenFile(encInfo.Key));
        }
示例#8
0
        protected static BinaryReader OpenInstallFile(EncodingHandler enc, CASCHandlerBase casc)
        {
            var encInfo = enc.GetEntry(casc.Config.InstallMD5);

            if (encInfo == null)
                throw new FileNotFoundException("encoding info for install file missing!");

            //ExtractFile(encInfo.Key, ".", "install");

            return new BinaryReader(casc.OpenFile(encInfo.Key));
        }