From d0209fe6a34dc856bc78d0346ddca2b273de1d14 Mon Sep 17 00:00:00 2001 From: Mino Date: Sun, 17 Nov 2019 00:03:54 +0900 Subject: [PATCH] Bump .NET framework version to 4.8 --- Dalamud.Injector/Dalamud.Injector.csproj | 6 +++--- Dalamud/Dalamud.csproj | 6 +++--- Dalamud/Hooking/Hook.cs | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Dalamud.Injector/Dalamud.Injector.csproj b/Dalamud.Injector/Dalamud.Injector.csproj index c78eb8453..f20b29a6e 100644 --- a/Dalamud.Injector/Dalamud.Injector.csproj +++ b/Dalamud.Injector/Dalamud.Injector.csproj @@ -1,8 +1,8 @@ AnyCPU - net471 - 7.2 + net48 + 8.0 AnyCPU;x64 @@ -26,4 +26,4 @@ - \ No newline at end of file + diff --git a/Dalamud/Dalamud.csproj b/Dalamud/Dalamud.csproj index d99acb87b..3775b7ad8 100644 --- a/Dalamud/Dalamud.csproj +++ b/Dalamud/Dalamud.csproj @@ -1,8 +1,8 @@  AnyCPU - net471 - 7.3 + net48 + 8.0 AnyCPU;x64 @@ -68,4 +68,4 @@ - \ No newline at end of file + diff --git a/Dalamud/Hooking/Hook.cs b/Dalamud/Hooking/Hook.cs index 4101d5912..c6311a79d 100644 --- a/Dalamud/Hooking/Hook.cs +++ b/Dalamud/Hooking/Hook.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using EasyHook; @@ -9,7 +9,7 @@ namespace Dalamud.Hooking { /// This class is basically a thin wrapper around the LocalHook type to provide helper functions. /// /// Delegate type to represents a function prototype. This must be the same prototype as original function do. - public sealed class Hook : IDisposable where T : class { + public sealed class Hook : IDisposable where T : Delegate { private bool isDisposed; private readonly IntPtr address;