fix N64 memory callbacks

This commit is contained in:
adelikat 2020-04-13 13:29:17 -05:00
parent a57d09fe99
commit 1fd620a1f4
2 changed files with 4 additions and 4 deletions

View File

@ -77,9 +77,9 @@ namespace BizHawk.Emulation.Cores.Nintendo.N64
throw new NotImplementedException();
}
public IMemoryCallbackSystem MemoryCallbacks { get; }
public IMemoryCallbackSystem MemoryCallbacks => _memoryCallbacks;
private readonly MemoryCallbackSystem _memorycallbacks = new MemoryCallbackSystem(new[] { "System Bus" });
private readonly MemoryCallbackSystem _memoryCallbacks = new MemoryCallbackSystem(new[] { "System Bus" });
public bool CanStep(StepType type)
{

View File

@ -30,8 +30,8 @@ namespace BizHawk.Emulation.Cores.Nintendo.N64
ServiceProvider = new BasicServiceProvider(this);
InputCallbacks = new InputCallbackSystem();
_memorycallbacks.CallbackAdded += AddBreakpoint;
_memorycallbacks.CallbackRemoved += RemoveBreakpoint;
_memoryCallbacks.CallbackAdded += AddBreakpoint;
_memoryCallbacks.CallbackRemoved += RemoveBreakpoint;
int SaveType = 0;
if (game.OptionValue("SaveType") == "EEPROM_16K")