OpenFile() 공개 메소드

public OpenFile ( MD5Hash key ) : Stream
key MD5Hash
리턴 Stream
예제 #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));
        }