/// <summary> /// Loads an archived file's data. /// </summary> /// <param name="filePath">The file path.</param> /// <returns></returns> /// <exception cref="System.IO.FileNotFoundException">Could not find file \"{filePath}</exception> public Task <byte[]> LoadFileDataAsync(string filePath) => _proxySink.LoadFileDataAsync(filePath, () => (Packs.FirstOrDefault(x => x.ContainsFile(filePath)) ?? throw new FileNotFoundException($"Could not find file \"{filePath}\" in a BSA file."))
/// <summary> /// Loads an archived file's data. /// </summary> public Task <byte[]> LoadFileDataAsync(string filePath) => _proxySink.LoadFileDataAsync(filePath, () => _pakFile.LoadFileDataAsync(filePath));