mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-09-23 07:14:57 +00:00
Convert Metadata file keys to proper properties
This commit is contained in:
@@ -35,7 +35,7 @@ namespace SabreTools.Metadata.DatFiles
|
||||
FilterRunner? filterRunner)
|
||||
{
|
||||
// If the metadata file is invalid, we can't do anything
|
||||
if (item is null || item.Count == 0)
|
||||
if (item is null)
|
||||
return;
|
||||
|
||||
// Create an internal source and add to the dictionary
|
||||
@@ -43,12 +43,12 @@ namespace SabreTools.Metadata.DatFiles
|
||||
// long sourceIndex = AddSourceDB(source);
|
||||
|
||||
// Get the header from the metadata
|
||||
var header = item.Read<Data.Models.Metadata.Header>(Data.Models.Metadata.MetadataFile.HeaderKey);
|
||||
var header = item.Header;
|
||||
if (header is not null)
|
||||
ConvertHeader(header, keep);
|
||||
|
||||
// Get the machines from the metadata
|
||||
var machines = item.ReadArray<Data.Models.Metadata.Machine>(Data.Models.Metadata.MetadataFile.MachineKey);
|
||||
var machines = item.Machine;
|
||||
if (machines is not null)
|
||||
ConvertMachines(machines, source, sourceIndex: 0, statsOnly, filterRunner);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user