diff --git a/Dalamud/Interface/Internal/ReShadeHandling/ReShadeAddonInterface.cs b/Dalamud/Interface/Internal/ReShadeHandling/ReShadeAddonInterface.cs index df324941e..de7629276 100644 --- a/Dalamud/Interface/Internal/ReShadeHandling/ReShadeAddonInterface.cs +++ b/Dalamud/Interface/Internal/ReShadeHandling/ReShadeAddonInterface.cs @@ -31,6 +31,8 @@ internal sealed unsafe partial class ReShadeAddonInterface : IDisposable if (!Exports.ReShadeRegisterAddon(this.hDalamudModule, ReShadeApiVersion)) throw new InvalidOperationException("ReShadeRegisterAddon failure."); + // https://github.com/crosire/reshade/commit/eaaa2a2c5adf5749ad17b358305da3f2d0f6baf4 + // TODO: when ReShade gets a proper release with this commit, make this hook optional this.addonModuleResolverHook = Hook.FromImport( ReShadeModule!, "kernel32.dll", diff --git a/Dalamud/Interface/Internal/ReShadeHandling/ReShadeUnwrapper.cs b/Dalamud/Interface/Internal/ReShadeHandling/ReShadeUnwrapper.cs index 5e6cd28a6..3682b03c0 100644 --- a/Dalamud/Interface/Internal/ReShadeHandling/ReShadeUnwrapper.cs +++ b/Dalamud/Interface/Internal/ReShadeHandling/ReShadeUnwrapper.cs @@ -1,5 +1,4 @@ using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -9,13 +8,7 @@ using static TerraFX.Interop.Windows.Windows; namespace Dalamud.Interface.Internal.ReShadeHandling; -/// -/// Peels ReShade off stuff. -/// -[SuppressMessage( - "StyleCop.CSharp.LayoutRules", - "SA1519:Braces should not be omitted from multi-line child statement", - Justification = "Multiple fixed blocks")] +/// Unwraps IUnknown wrapped by ReShade. internal static unsafe class ReShadeUnwrapper { /// Unwraps if it is wrapped by ReShade.