mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Slight rename of CloneFormatting
This commit is contained in:
@@ -1485,7 +1485,7 @@ namespace SabreTools.DatFiles
|
|||||||
{
|
{
|
||||||
var input = inputs[i];
|
var input = inputs[i];
|
||||||
_staticLogger.User($"Adding DAT: {input.CurrentPath}");
|
_staticLogger.User($"Adding DAT: {input.CurrentPath}");
|
||||||
datFiles[i] = CreateDatFile(datFile.Header.CloneFiltering(), datFile.Modifiers);
|
datFiles[i] = CreateDatFile(datFile.Header.CloneFormat(), datFile.Modifiers);
|
||||||
Parser.ParseInto(datFiles[i], input, i, keep: true);
|
Parser.ParseInto(datFiles[i], input, i, keep: true);
|
||||||
#if NET40_OR_GREATER || NETCOREAPP
|
#if NET40_OR_GREATER || NETCOREAPP
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -165,11 +165,12 @@ namespace SabreTools.DatFiles
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clone the filtering parts of the current header
|
/// Clone just the format from the current header
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public DatHeader CloneFiltering()
|
public DatHeader CloneFormat()
|
||||||
{
|
{
|
||||||
var header = new DatHeader();
|
var header = new DatHeader();
|
||||||
|
|
||||||
header.SetFieldValue<DatFormat>(DatHeader.DatFormatKey,
|
header.SetFieldValue<DatFormat>(DatHeader.DatFormatKey,
|
||||||
GetFieldValue<DatFormat>(DatHeader.DatFormatKey));
|
GetFieldValue<DatFormat>(DatHeader.DatFormatKey));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user