public VirtualFile OpenFile(string filename, FileFormat f = FileFormat.None, CacheMethod m = CacheMethod.Default) { MixEntry e; if (!Index.TryGetValue(MixEntry.HashFilename(filename), out e)) { return(null); } else { return(FormatHelper.OpenAsFormat(BaseStream, filename, (int)(BaseOffset + dataStart + e.Offset), (int)e.Length, f, m)); } }
public bool ContainsFile(string filename) { return(Index.ContainsKey(MixEntry.HashFilename(filename))); }