private void SyncState(Serializer ser)
        {
            ser.BeginSection("A2600");
            Cpu.SyncState(ser);
            ser.Sync("ram", ref this.Ram, false);
            ser.Sync("Lag", ref _lagcount);
            ser.Sync("Frame", ref _frame);
            ser.Sync("IsLag", ref _islag);
            ser.Sync("frameStartPending", ref _frameStartPending);
            ser.Sync("leftDifficultySwitchPressed", ref _leftDifficultySwitchPressed);
            ser.Sync("rightDifficultySwitchPressed", ref _rightDifficultySwitchPressed);
            ser.Sync("leftDifficultySwitchHeld", ref _leftDifficultySwitchHeld);
            ser.Sync("rightDifficultySwitchHeld", ref _rightDifficultySwitchHeld);

            _tia.SyncState(ser);
            M6532.SyncState(ser);
            ser.BeginSection("Mapper");
            _mapper.SyncState(ser);
            ser.EndSection();
            ser.EndSection();

            if (ser.IsReader)
            {
                SyncAllByteArrayDomains();
            }
        }
Exemple #2
0
 private void SyncState(Serializer ser)
 {
     ser.BeginSection("A2600");
     Cpu.SyncState(ser);
     ser.Sync("ram", ref this.Ram, false);
     ser.Sync("Lag", ref _lagcount);
     ser.Sync("Frame", ref _frame);
     ser.Sync("IsLag", ref _islag);
     ser.Sync("frameStartPending", ref _frameStartPending);
     _tia.SyncState(ser);
     M6532.SyncState(ser);
     ser.BeginSection("Mapper");
     _mapper.SyncState(ser);
     ser.EndSection();
     ser.EndSection();
 }