Fix edge case with C64 states when CurrentDisk is different

This commit is contained in:
CasualPokePlayer 2023-04-02 06:56:32 -07:00
parent d95cd4becb
commit 2fc4683e6b
1 changed files with 5 additions and 0 deletions

View File

@ -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");