[DatItem, Machine] Copy all machine info on dupe found

This commit is contained in:
Matt Nadareski
2017-03-16 23:34:14 -07:00
parent 9c58c06aaf
commit 55d03fa62f
2 changed files with 28 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ using SabreTools.Helper.Data;
namespace SabreTools.Helper.Dats
{
public class Machine
public class Machine : ICloneable
{
#region Protected instance variables
@@ -128,5 +128,30 @@ namespace SabreTools.Helper.Dats
}
#endregion
#region Cloneing
public object Clone()
{
return new Machine()
{
Name = _name,
Comment = _comment,
Description = _description,
Year = _year,
Manufacturer = _manufacturer,
RomOf = _romOf,
CloneOf = _cloneOf,
SampleOf = _sampleOf,
SourceFile = _sourceFile,
Runnable = _runnable,
Board = _board,
RebuildTo = _rebuildTo,
Devices = _devices,
MachineType = _machineType,
};
}
#endregion
}
}