[DatItem] Forgot to check these

This commit is contained in:
Matt Nadareski
2017-10-06 17:42:59 -07:00
parent 27134c2f8f
commit a401cbebf4
6 changed files with 24 additions and 18 deletions

View File

@@ -22,14 +22,12 @@ namespace SabreTools.Library.Dats
public new object Clone() public new object Clone()
{ {
return new Archive() Archive item = new Archive()
{ {
Name = this.Name, Name = this.Name,
Type = this.Type, Type = this.Type,
Dupe = this.Dupe, Dupe = this.Dupe,
Machine = (Machine)this.Machine.Clone(),
Supported = this.Supported, Supported = this.Supported,
Publisher = this.Publisher, Publisher = this.Publisher,
Infos = this.Infos, Infos = this.Infos,
@@ -44,6 +42,9 @@ namespace SabreTools.Library.Dats
SourceID = this.SourceID, SourceID = this.SourceID,
Source = this.Source, Source = this.Source,
}; };
item.CopyMachineInformation(this);
return item;
} }
#endregion #endregion

View File

@@ -44,14 +44,12 @@ namespace SabreTools.Library.Dats
public new object Clone() public new object Clone()
{ {
return new BiosSet() BiosSet item = new BiosSet()
{ {
Name = this.Name, Name = this.Name,
Type = this.Type, Type = this.Type,
Dupe = this.Dupe, Dupe = this.Dupe,
Machine = (Machine)this.Machine.Clone(),
Supported = this.Supported, Supported = this.Supported,
Publisher = this.Publisher, Publisher = this.Publisher,
Infos = this.Infos, Infos = this.Infos,
@@ -69,6 +67,9 @@ namespace SabreTools.Library.Dats
Description = this.Description, Description = this.Description,
Default = this.Default, Default = this.Default,
}; };
item.CopyMachineInformation(this);
return item;
} }
#endregion #endregion

View File

@@ -73,14 +73,12 @@ namespace SabreTools.Library.Dats
public new object Clone() public new object Clone()
{ {
return new Disk() Disk item = new Disk()
{ {
Name = this.Name, Name = this.Name,
Type = this.Type, Type = this.Type,
Dupe = this.Dupe, Dupe = this.Dupe,
Machine = (Machine)this.Machine.Clone(),
Supported = this.Supported, Supported = this.Supported,
Publisher = this.Publisher, Publisher = this.Publisher,
Infos = this.Infos, Infos = this.Infos,
@@ -102,6 +100,9 @@ namespace SabreTools.Library.Dats
SHA512 = this.SHA512, SHA512 = this.SHA512,
ItemStatus = this.ItemStatus, ItemStatus = this.ItemStatus,
}; };
item.CopyMachineInformation(this);
return item;
} }
#endregion #endregion

View File

@@ -61,14 +61,12 @@ namespace SabreTools.Library.Dats
public new object Clone() public new object Clone()
{ {
return new Release() Release item = new Release()
{ {
Name = this.Name, Name = this.Name,
Type = this.Type, Type = this.Type,
Dupe = this.Dupe, Dupe = this.Dupe,
Machine = (Machine)this.Machine.Clone(),
Supported = this.Supported, Supported = this.Supported,
Publisher = this.Publisher, Publisher = this.Publisher,
Infos = this.Infos, Infos = this.Infos,
@@ -88,6 +86,9 @@ namespace SabreTools.Library.Dats
Date = this.Date, Date = this.Date,
Default = this.Default, Default = this.Default,
}; };
item.CopyMachineInformation(this);
return item;
} }
#endregion #endregion

View File

@@ -101,14 +101,12 @@ namespace SabreTools.Library.Dats
public new object Clone() public new object Clone()
{ {
return new Rom() Rom item = new Rom()
{ {
Name = this.Name, Name = this.Name,
Type = this.Type, Type = this.Type,
Dupe = this.Dupe, Dupe = this.Dupe,
Machine = (Machine)this.Machine.Clone(),
Supported = this.Supported, Supported = this.Supported,
Publisher = this.Publisher, Publisher = this.Publisher,
Infos = this.Infos, Infos = this.Infos,
@@ -133,6 +131,9 @@ namespace SabreTools.Library.Dats
CRC = _crc, CRC = _crc,
Date = this.Date, Date = this.Date,
}; };
item.CopyMachineInformation(this);
return item;
} }
#endregion #endregion

View File

@@ -23,14 +23,12 @@ namespace SabreTools.Library.Dats
public new object Clone() public new object Clone()
{ {
return new Sample() Sample item = new Sample()
{ {
Name = this.Name, Name = this.Name,
Type = this.Type, Type = this.Type,
Dupe = this.Dupe, Dupe = this.Dupe,
Machine = (Machine)this.Machine.Clone(),
Supported = this.Supported, Supported = this.Supported,
Publisher = this.Publisher, Publisher = this.Publisher,
Infos = this.Infos, Infos = this.Infos,
@@ -45,6 +43,9 @@ namespace SabreTools.Library.Dats
SourceID = this.SourceID, SourceID = this.SourceID,
Source = this.Source, Source = this.Source,
}; };
item.CopyMachineInformation(this);
return item;
} }
#endregion #endregion