mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Add empty list for stats generation
This commit is contained in:
@@ -230,11 +230,18 @@ namespace SabreTools.DatFiles
|
|||||||
// Get the key and add the file
|
// Get the key and add the file
|
||||||
key = item.GetKey(ItemKey.Machine);
|
key = item.GetKey(ItemKey.Machine);
|
||||||
|
|
||||||
// If only adding statistics
|
// If only adding statistics, we add an empty key for games and then just item stats
|
||||||
if (statsOnly)
|
if (statsOnly)
|
||||||
|
{
|
||||||
|
if (Items.ContainsKey(key))
|
||||||
|
Items.Add(key, new List<DatItem>());
|
||||||
|
|
||||||
Items.AddItemStatistics(item);
|
Items.AddItemStatistics(item);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
Items.Add(key, item);
|
Items.Add(key, item);
|
||||||
|
}
|
||||||
|
|
||||||
return key;
|
return key;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user