예제 #1
0
 /// <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."))
예제 #2
0
 /// <summary>
 /// Loads an archived file's data.
 /// </summary>
 public Task <byte[]> LoadFileDataAsync(string filePath) => _proxySink.LoadFileDataAsync(filePath, () => _pakFile.LoadFileDataAsync(filePath));