make these callback delegate caches static (why didn't this warn that static was possible here?)
This commit is contained in:
parent
3c53f52c6d
commit
08ead80385
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue