Skip to content

Commit ee4e96e

Browse files
committed
try catch texture exception
1 parent e2d3072 commit ee4e96e

File tree

4 files changed

+23
-12
lines changed

4 files changed

+23
-12
lines changed

DelvCD/DelvCD.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
<!-- Assembly Configuration -->
1111
<PropertyGroup>
1212
<AssemblyName>DelvCD</AssemblyName>
13-
<AssemblyVersion>1.2.0.0</AssemblyVersion>
14-
<FileVersion>1.2.0.0</FileVersion>
15-
<InformationalVersion>1.2.0.0</InformationalVersion>
13+
<AssemblyVersion>1.2.0.1</AssemblyVersion>
14+
<FileVersion>1.2.0.1</FileVersion>
15+
<InformationalVersion>1.2.0.1</InformationalVersion>
1616
</PropertyGroup>
1717

1818
<!-- Build Configuration -->

DelvCD/Helpers/TexturesCache.cs

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,22 @@ public TexturesCache()
3939
return t;
4040
}
4141

42-
string? path = Singletons.Get<ITextureProvider>().GetIconPath(new GameIconLookup(iconId: iconId, hiRes: hdIcon));
43-
if (path != null)
42+
try
4443
{
45-
path = Singletons.Get<ITextureSubstitutionProvider>().GetSubstitutedPath(path);
46-
IDalamudTextureWrap ? texture = GetDesaturatedTextureWrap(path);
47-
if (texture != null)
44+
string? path = Singletons.Get<ITextureProvider>().GetIconPath(new GameIconLookup(iconId: iconId, hiRes: hdIcon));
45+
if (path != null)
4846
{
49-
_desaturatedCache.Add(iconId + stackCount, texture);
47+
path = Singletons.Get<ITextureSubstitutionProvider>().GetSubstitutedPath(path);
48+
IDalamudTextureWrap? texture = GetDesaturatedTextureWrap(path);
49+
if (texture != null)
50+
{
51+
_desaturatedCache.Add(iconId + stackCount, texture);
52+
}
53+
54+
return texture;
5055
}
51-
52-
return texture;
5356
}
57+
catch { }
5458

5559
return null;
5660
}

DelvCD/Plugin.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class Plugin : IDalamudPlugin
1515
{
1616
public const string ConfigFileName = "DelvCD.json";
1717

18-
public static string Version { get; private set; } = "1.2.0.0";
18+
public static string Version { get; private set; } = "1.2.0.1";
1919

2020
public static string ConfigFileDir { get; private set; } = "";
2121

DelvCD/changelog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# 1.2.0.1
2+
- Added keybind label tag for Actions and Items.
3+
- Fixed Dark Knight's Darkside duration.
4+
- Fixed issues with invalid icon identifiers:
5+
* A lot of the game's icons game files where moved around in 7.1.
6+
* If you have auras that are not showing, you might need to manually re-enter the Action/Status names/ids so DelvCD can find the right icons again.
7+
18
# 1.2.0.0
29
- Added support for Patch 7.1 and Dalamud API 11.
310
- Fixed inverted swipe.

0 commit comments

Comments
 (0)