CASCExplorer.CASCHandlerBase.OpenFile C# (CSharp) Method

OpenFile() public abstract method

public abstract OpenFile ( string name ) : Stream
name string
return Stream
        public abstract Stream OpenFile(string name);
        public abstract Stream OpenFile(ulong hash);

Same methods

CASCHandlerBase::OpenFile ( MD5Hash key ) : Stream
CASCHandlerBase::OpenFile ( int filedata ) : Stream
CASCHandlerBase::OpenFile ( ulong hash ) : Stream

Usage Example

Example #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)));
        }
All Usage Examples Of CASCExplorer.CASCHandlerBase::OpenFile