From 08ead80385eedacd74c58694d235f6f25437cd73 Mon Sep 17 00:00:00 2001 From: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com> Date: Fri, 19 May 2023 22:30:17 -0700 Subject: [PATCH] make these callback delegate caches static (why didn't this warn that static was possible here?) --- src/BizHawk.Emulation.Cores/Waterbox/WaterboxHost.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BizHawk.Emulation.Cores/Waterbox/WaterboxHost.cs b/src/BizHawk.Emulation.Cores/Waterbox/WaterboxHost.cs index b044fc78b5..deaeb7e515 100644 --- a/src/BizHawk.Emulation.Cores/Waterbox/WaterboxHost.cs +++ b/src/BizHawk.Emulation.Cores/Waterbox/WaterboxHost.cs @@ -149,8 +149,8 @@ namespace BizHawk.Emulation.Cores.Waterbox } // cache these delegates so they aren't GC'd - private readonly ReadCallback _readCallback = ReadCallback; - private readonly WriteCallback _writeCallback = WriteCallback; + private static readonly ReadCallback _readCallback = ReadCallback; + private static readonly WriteCallback _writeCallback = WriteCallback; public WaterboxHost(WaterboxOptions opt) {