Add wrapper for Lumina's FileExists.

This commit is contained in:
aers 2020-12-21 16:26:38 -08:00
parent c6d9bd7000
commit 3866ac75fe

View file

@ -182,6 +182,16 @@ namespace Dalamud.Data
return this.gameData.Repositories.TryGetValue(filePath.Repository, out repository) ? repository.GetFile<T>(filePath.Category, filePath) : default(T);
}
/// <summary>
/// Check if the file with the given path exists within the game's index files.
/// </summary>
/// <param name="path">The path inside of the game files.</param>
/// <returns>True if the file exists.</returns>
public bool FileExists(string path)
{
return this.gameData.FileExists(path);
}
/// <summary>
/// Get a <see cref="TexFile"/> containing the icon with the given ID.
/// </summary>