Fix edge case with C64 states when CurrentDisk is different
This commit is contained in:
parent
d95cd4becb
commit
2fc4683e6b
|
@ -11,7 +11,12 @@ namespace BizHawk.Emulation.Cores.Computers.Commodore64
|
|||
ser.Sync(nameof(Frame), ref _frame);
|
||||
ser.Sync(nameof(IsLagFrame), ref _isLagFrame);
|
||||
ser.Sync(nameof(LagCount), ref _lagCount);
|
||||
var oldDisk = _currentDisk;
|
||||
ser.Sync(nameof(CurrentDisk), ref _currentDisk);
|
||||
if (oldDisk != _currentDisk)
|
||||
{
|
||||
InitDisk();
|
||||
}
|
||||
ser.Sync("PreviousDiskPressed", ref _prevPressed);
|
||||
ser.Sync("NextDiskPressed", ref _nextPressed);
|
||||
ser.BeginSection("Board");
|
||||
|
|
Loading…
Reference in New Issue