Apple II - Fix Memory and Input Callbacks interacting with savestates
This commit is contained in:
parent
23d93cc1fe
commit
bcbc588e05
|
@ -37,6 +37,9 @@ namespace BizHawk.Emulation.Cores.Computers.AppleII
|
||||||
{
|
{
|
||||||
_settings = o;
|
_settings = o;
|
||||||
_machine.Video.IsMonochrome = _settings.Monochrome;
|
_machine.Video.IsMonochrome = _settings.Monochrome;
|
||||||
|
|
||||||
|
setCallbacks();
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -54,12 +54,7 @@ namespace BizHawk.Emulation.Cores.Computers.AppleII
|
||||||
|
|
||||||
ser.Register<ITraceable>(Tracer);
|
ser.Register<ITraceable>(Tracer);
|
||||||
|
|
||||||
//Set up Memory Callbacks
|
setCallbacks();
|
||||||
_machine.Memory.ReadCallback = MemoryCallbacks.CallReads;
|
|
||||||
_machine.Memory.WriteCallback = MemoryCallbacks.CallWrites;
|
|
||||||
_machine.Memory.ExecuteCallback = MemoryCallbacks.CallExecutes;
|
|
||||||
|
|
||||||
_machine.Memory.InputCallback = InputCallbacks.Call;
|
|
||||||
|
|
||||||
InitSaveStates();
|
InitSaveStates();
|
||||||
SetupMemoryDomains();
|
SetupMemoryDomains();
|
||||||
|
@ -180,5 +175,14 @@ namespace BizHawk.Emulation.Cores.Computers.AppleII
|
||||||
|
|
||||||
Frame++;
|
Frame++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void setCallbacks()
|
||||||
|
{
|
||||||
|
_machine.Memory.ReadCallback = MemoryCallbacks.CallReads;
|
||||||
|
_machine.Memory.WriteCallback = MemoryCallbacks.CallWrites;
|
||||||
|
_machine.Memory.ExecuteCallback = MemoryCallbacks.CallExecutes;
|
||||||
|
_machine.Memory.InputCallback = InputCallbacks.Call;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -83,7 +83,6 @@ namespace Jellyfish.Virtu
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void BizInitialize()
|
public void BizInitialize()
|
||||||
{
|
{
|
||||||
Initialize();
|
Initialize();
|
||||||
|
@ -144,6 +143,7 @@ namespace Jellyfish.Virtu
|
||||||
typeof(Machine).Assembly,
|
typeof(Machine).Assembly,
|
||||||
typeof(object).Assembly
|
typeof(object).Assembly
|
||||||
}));
|
}));
|
||||||
|
|
||||||
ser.Converters.Add(new DelegateConverter());
|
ser.Converters.Add(new DelegateConverter());
|
||||||
ser.Converters.Add(new ArrayConverter());
|
ser.Converters.Add(new ArrayConverter());
|
||||||
|
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue