mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Ensure standard header copies all fields
This commit is contained in:
@@ -151,6 +151,18 @@ namespace SabreTools.DatFiles
|
|||||||
if (header.ContainsKey(fieldName))
|
if (header.ContainsKey(fieldName))
|
||||||
_internal[fieldName] = header[fieldName];
|
_internal[fieldName] = header[fieldName];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Get all fields specific to the DatFiles implementation
|
||||||
|
var nonStandardFields = TypeHelper.GetConstants(typeof(DatHeader));
|
||||||
|
if (nonStandardFields == null)
|
||||||
|
return;
|
||||||
|
|
||||||
|
// Populate the internal machine from filter fields
|
||||||
|
foreach (string fieldName in nonStandardFields)
|
||||||
|
{
|
||||||
|
if (header.ContainsKey(fieldName))
|
||||||
|
_internal[fieldName] = header[fieldName];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|||||||
Reference in New Issue
Block a user