make these callback delegate caches static (why didn't this warn that static was possible here?)

This commit is contained in:
CasualPokePlayer 2023-05-19 22:30:17 -07:00
parent 3c53f52c6d
commit 08ead80385
1 changed files with 2 additions and 2 deletions

View File

@ -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)
{