コード例 #1
0
ファイル: CASCHandlerBase.cs プロジェクト: lin5/Tools
        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
ファイル: CASCHandlerBase.cs プロジェクト: lin5/Tools
        protected BinaryReader OpenEncodingFile(CASCHandlerBase casc)
        {
            //ExtractFile(Config.EncodingKey, ".", "encoding");

            return(new BinaryReader(casc.OpenFile(casc.Config.EncodingKey)));
        }