NESHawk: add offset to state, change input poll timing to match actual polling

This commit is contained in:
alyosha-tas 2021-06-19 10:24:17 -04:00
parent 90a12a8e73
commit cb0c8c0859
2 changed files with 2 additions and 2 deletions

View File

@ -755,14 +755,13 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
controller_was_latched = true;
alt_lag = false;
lagged = false;
InputCallbacks.Call();
}
current_strobe = new_strobe;
}
private byte read_joyport(int addr)
{
InputCallbacks.Call();
byte ret;
if (_isVS)
{

View File

@ -301,6 +301,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
ser.Sync(nameof(nmi_destiny), ref nmi_destiny);
ser.Sync(nameof(evenOddDestiny), ref evenOddDestiny);
ser.Sync(nameof(start_up_offset), ref start_up_offset);
ser.Sync(nameof(NMI_offset), ref NMI_offset);
ser.Sync(nameof(yp_shift), ref yp_shift);
ser.Sync(nameof(sprite_eval_cycle), ref sprite_eval_cycle);