Add conversion helpers, fix build

This commit is contained in:
Matt Nadareski
2023-08-14 14:53:28 -04:00
parent 2e662c0b4e
commit 59dd9e8d26
6 changed files with 70 additions and 31 deletions

View File

@@ -248,9 +248,8 @@ namespace SabreTools.DatItems.Formats
/// <returns></returns>
public Rom ConvertToRom()
{
var rom = new Rom()
var rom = new Rom(_disk.ConvertToRom())
{
Name = this.Name + ".chd",
ItemType = ItemType.Rom,
DupeType = this.DupeType,
@@ -258,14 +257,6 @@ namespace SabreTools.DatItems.Formats
Source = this.Source?.Clone() as Source,
Remove = this.Remove,
MergeTag = this.MergeTag,
Region = this.Region,
ItemStatus = this.ItemStatus,
Optional = this.Optional,
MD5 = this.MD5,
SHA1 = this.SHA1,
DataArea = new DataArea { Name = this.DiskArea?.Name },
Part = this.Part,
};