CASCExplorer.CASCHandlerBase.OpenInstallFile C# (CSharp) Method

OpenInstallFile() protected static method

protected static OpenInstallFile ( EncodingHandler enc, CASCHandlerBase casc ) : BinaryReader
enc EncodingHandler
casc CASCHandlerBase
return System.IO.BinaryReader
        protected static BinaryReader OpenInstallFile(EncodingHandler enc, CASCHandlerBase casc)
        {
            EncodingEntry encInfo;

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

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

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