From 0b3690de94851cabe21aeefd4cf7f150c7515110 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E6=B0=B4?= <1123993881@qq.com> Date: Wed, 29 Mar 2023 14:15:45 +0800 Subject: [PATCH] fix: add a link description for NIN. --- .../Attributes/LinkDescriptionAttribute.cs | 10 +++++++++- RotationSolver.Default/Melee/NIN_Default.cs | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/RotationSolver.Basic/Attributes/LinkDescriptionAttribute.cs b/RotationSolver.Basic/Attributes/LinkDescriptionAttribute.cs index bbbe7db4d..7454baad7 100644 --- a/RotationSolver.Basic/Attributes/LinkDescriptionAttribute.cs +++ b/RotationSolver.Basic/Attributes/LinkDescriptionAttribute.cs @@ -61,6 +61,14 @@ private static TextureWrap TryLoadImage(byte[] bytes) { if (bytes == null) return null; - return Service.Interface.UiBuilder.LoadImage(bytes); + + try + { + return Service.Interface.UiBuilder.LoadImage(bytes); + } + catch + { + return null; + } } } diff --git a/RotationSolver.Default/Melee/NIN_Default.cs b/RotationSolver.Default/Melee/NIN_Default.cs index 3f3ce8288..637dca615 100644 --- a/RotationSolver.Default/Melee/NIN_Default.cs +++ b/RotationSolver.Default/Melee/NIN_Default.cs @@ -2,6 +2,7 @@ namespace RotationSolver.Default.Melee; [RotationDesc(ActionID.Mug)] [SourceCode("https://github.com/ArchiDog1998/RotationSolver/blob/main/RotationSolver.Default/Melee/NIN_Default.cs")] +[LinkDescription("https://docs.google.com/spreadsheets/u/0/d/1BZZrqWMRrugCeiBICEgjCz2vRNXt_lRTxPnSQr24Em0/htmlview#")] public sealed class NIN_Default : NIN_Base { public override string GameVersion => "6.0";