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. ///