From 8b75ce1d981c68a81101c6234e50a74d13ed8f15 Mon Sep 17 00:00:00 2001 From: Evan Husted Date: Mon, 21 Oct 2024 02:42:53 -0500 Subject: [PATCH] misc: Fix the issues blocking PRs --- src/Ryujinx.Input.SDL2/SDL2Mouse.cs | 1 + src/Ryujinx.Input.SDL2/SDL2MouseDriver.cs | 1 + src/Ryujinx.UI.Common/App/ApplicationData.cs | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Ryujinx.Input.SDL2/SDL2Mouse.cs b/src/Ryujinx.Input.SDL2/SDL2Mouse.cs index 6dfd75984..37b356b76 100644 --- a/src/Ryujinx.Input.SDL2/SDL2Mouse.cs +++ b/src/Ryujinx.Input.SDL2/SDL2Mouse.cs @@ -83,6 +83,7 @@ namespace Ryujinx.Input.SDL2 public void Dispose() { + GC.SuppressFinalize(this); _driver = null; } } diff --git a/src/Ryujinx.Input.SDL2/SDL2MouseDriver.cs b/src/Ryujinx.Input.SDL2/SDL2MouseDriver.cs index 286164049..768ea8c62 100644 --- a/src/Ryujinx.Input.SDL2/SDL2MouseDriver.cs +++ b/src/Ryujinx.Input.SDL2/SDL2MouseDriver.cs @@ -171,6 +171,7 @@ namespace Ryujinx.Input.SDL2 return; } + GC.SuppressFinalize(this); _isDisposed = true; } } diff --git a/src/Ryujinx.UI.Common/App/ApplicationData.cs b/src/Ryujinx.UI.Common/App/ApplicationData.cs index c2c0d0b4c..b1e346291 100644 --- a/src/Ryujinx.UI.Common/App/ApplicationData.cs +++ b/src/Ryujinx.UI.Common/App/ApplicationData.cs @@ -19,7 +19,7 @@ namespace Ryujinx.UI.App.Common { public class ApplicationData { - public static Func LocalizedNever = () => "Never"; + public static Func LocalizedNever { get; set; } = () => "Never"; public bool Favorite { get; set; } public byte[] Icon { get; set; }