From 3866ac75feda4a6dd6eb6cea57172a81de4090e8 Mon Sep 17 00:00:00 2001 From: aers Date: Mon, 21 Dec 2020 16:26:38 -0800 Subject: [PATCH] Add wrapper for Lumina's FileExists. --- Dalamud/Data/DataManager.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Dalamud/Data/DataManager.cs b/Dalamud/Data/DataManager.cs index a48147d71..2e5da30b1 100644 --- a/Dalamud/Data/DataManager.cs +++ b/Dalamud/Data/DataManager.cs @@ -182,6 +182,16 @@ namespace Dalamud.Data return this.gameData.Repositories.TryGetValue(filePath.Repository, out repository) ? repository.GetFile(filePath.Category, filePath) : default(T); } + /// + /// Check if the file with the given path exists within the game's index files. + /// + /// The path inside of the game files. + /// True if the file exists. + public bool FileExists(string path) + { + return this.gameData.FileExists(path); + } + /// /// Get a containing the icon with the given ID. ///