protected MachineBase(DeserializationContext input, int[] palette) { if (input == null) { throw new ArgumentNullException("input"); } if (palette == null) { throw new ArgumentNullException("palette"); } if (palette.Length != 0x100) { throw new ArgumentException("palette incorrect size, must be 256."); } input.CheckVersion(1); _MachineHalt = input.ReadBoolean(); _FrameHZ = input.ReadInt32(); _VisiblePitch = input.ReadInt32(); _Scanlines = input.ReadInt32(); FirstScanline = input.ReadInt32(); SoundSampleFrequency = input.ReadInt32(); NOPRegisterDumping = input.ReadBoolean(); InputState = input.ReadInputState(); Palette = palette; Logger = null; }
protected MachineBase(DeserializationContext input, int[] palette) { if (input == null) throw new ArgumentNullException("input"); if (palette == null) throw new ArgumentNullException("palette"); if (palette.Length != 0x100) throw new ArgumentException("palette incorrect size, must be 256."); input.CheckVersion(1); _MachineHalt = input.ReadBoolean(); _FrameHZ = input.ReadInt32(); _VisiblePitch = input.ReadInt32(); _Scanlines = input.ReadInt32(); FirstScanline = input.ReadInt32(); SoundSampleFrequency = input.ReadInt32(); NOPRegisterDumping = input.ReadBoolean(); InputState = input.ReadInputState(); Palette = palette; Logger = null; }