Patcher.Data.Archives.ArchiveManager.GetFileStream C# (CSharp) Method

GetFileStream() public method

public GetFileStream ( string path ) : Stream
path string
return Stream
        public Stream GetFileStream(string path)
        {
            foreach (var archive in archives)
            {
                if (archive.Reader.FileExists(path))
                    return archive.Reader.GetFileStream(path);
            }
            throw new InvalidDataException("File not found in any archive: " + path);
        }