mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-31 21:03:43 +01:00
Reviewed changed
This commit is contained in:
parent
e1a7caa2cf
commit
6fd19638e9
2 changed files with 3 additions and 8 deletions
|
|
@ -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<GetModuleHandleExWDelegate>.FromImport(
|
||||
ReShadeModule!,
|
||||
"kernel32.dll",
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
/// <summary>
|
||||
/// Peels ReShade off stuff.
|
||||
/// </summary>
|
||||
[SuppressMessage(
|
||||
"StyleCop.CSharp.LayoutRules",
|
||||
"SA1519:Braces should not be omitted from multi-line child statement",
|
||||
Justification = "Multiple fixed blocks")]
|
||||
/// <summary>Unwraps IUnknown wrapped by ReShade.</summary>
|
||||
internal static unsafe class ReShadeUnwrapper
|
||||
{
|
||||
/// <summary>Unwraps <typeparamref name="T"/> if it is wrapped by ReShade.</summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue