mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[Structs] Allow DAT header data to be cloned
This commit is contained in:
@@ -148,6 +148,41 @@ namespace SabreTools.Helper
|
|||||||
NodumpCount = this.NodumpCount,
|
NodumpCount = this.NodumpCount,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public object CloneHeader()
|
||||||
|
{
|
||||||
|
return new Dat
|
||||||
|
{
|
||||||
|
FileName = this.FileName,
|
||||||
|
Name = this.Name,
|
||||||
|
Description = this.Description,
|
||||||
|
Category = this.Category,
|
||||||
|
Version = this.Version,
|
||||||
|
Date = this.Date,
|
||||||
|
Author = this.Author,
|
||||||
|
Email = this.Email,
|
||||||
|
Homepage = this.Homepage,
|
||||||
|
Url = this.Url,
|
||||||
|
Comment = this.Comment,
|
||||||
|
Header = this.Header,
|
||||||
|
Type = this.Type,
|
||||||
|
ForceMerging = this.ForceMerging,
|
||||||
|
ForceNodump = this.ForceNodump,
|
||||||
|
ForcePacking = this.ForcePacking,
|
||||||
|
OutputFormat = this.OutputFormat,
|
||||||
|
MergeRoms = this.MergeRoms,
|
||||||
|
Roms = new Dictionary<string, List<Rom>>(),
|
||||||
|
UseGame = this.UseGame,
|
||||||
|
Prefix = this.Prefix,
|
||||||
|
Postfix = this.Postfix,
|
||||||
|
Quotes = this.Quotes,
|
||||||
|
RepExt = this.RepExt,
|
||||||
|
AddExt = this.AddExt,
|
||||||
|
GameName = this.GameName,
|
||||||
|
Romba = this.Romba,
|
||||||
|
TSV = this.TSV,
|
||||||
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user