mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-01 05:13:40 +01:00
Cache DalamudAssetAttribute lookups (#2014)
This commit is contained in:
parent
ecf8e323c4
commit
7a45fb05e3
3 changed files with 37 additions and 8 deletions
|
|
@ -364,7 +364,7 @@ internal class ImGuiWidget : IDataWindowWidget
|
|||
|
||||
public static readonly string[] AssetSources =
|
||||
Enum.GetValues<DalamudAsset>()
|
||||
.Where(x => x.GetAttribute<DalamudAssetAttribute>()?.Purpose is DalamudAssetPurpose.TextureFromPng)
|
||||
.Where(x => x.GetPurpose() is DalamudAssetPurpose.TextureFromPng)
|
||||
.Select(Enum.GetName)
|
||||
.ToArray();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue