Keep on with DB renaming

This commit is contained in:
Matt Nadareski
2025-01-09 03:31:31 -05:00
parent 00e8ca6bcc
commit 450417f0ab
6 changed files with 42 additions and 42 deletions

View File

@@ -119,7 +119,7 @@ namespace SabreTools.DatFiles.Formats
{
// If this machine doesn't contain any writable items, skip
var itemsDict = ItemsDB.GetItemsForBucket(key, filter: true);
if (itemsDict == null || !ContainsWritable(itemsDict))
if (itemsDict == null || !ContainsWritableDB(itemsDict))
continue;
// Resolve the names in the block
@@ -128,7 +128,7 @@ namespace SabreTools.DatFiles.Formats
foreach (var kvp in items)
{
// Check for a "null" item
var datItem = ProcessNullifiedItem(kvp);
var datItem = ProcessNullifiedItemDB(kvp);
// Get the machine for the item
var machine = ItemsDB.GetMachineForItem(datItem.Key);

View File

@@ -356,7 +356,7 @@ namespace SabreTools.DatFiles.Formats
datItem.CopyMachineInformation(machine);
datItem.SetFieldValue<Source?>(DatItem.SourceKey, source);
ParseAddHelper(datItem, statsOnly);
ParseAddHelper(datItem, machineIndex, sourceIndex, statsOnly);
ParseAddHelperDB(datItem, machineIndex, sourceIndex, statsOnly);
}
}
@@ -475,7 +475,7 @@ namespace SabreTools.DatFiles.Formats
{
// If this machine doesn't contain any writable items, skip
var itemsDict = ItemsDB.GetItemsForBucket(key, filter: true);
if (itemsDict == null || !ContainsWritable(itemsDict))
if (itemsDict == null || !ContainsWritableDB(itemsDict))
continue;
// Resolve the names in the block
@@ -495,7 +495,7 @@ namespace SabreTools.DatFiles.Formats
WriteStartGame(jtw, kvp.Value);
// Check for a "null" item
var datItem = ProcessNullifiedItem(kvp);
var datItem = ProcessNullifiedItemDB(kvp);
// Write out the item if we're not ignoring
if (!ShouldIgnore(datItem.Value, ignoreblanks))

View File

@@ -178,7 +178,7 @@ namespace SabreTools.DatFiles.Formats
item.CopyMachineInformation(machine);
item.SetFieldValue<Source?>(DatItem.SourceKey, source);
ParseAddHelper(item, statsOnly);
ParseAddHelper(item, machineIndex, sourceIndex, statsOnly);
ParseAddHelperDB(item, machineIndex, sourceIndex, statsOnly);
}
xtr.Skip();
break;
@@ -304,7 +304,7 @@ namespace SabreTools.DatFiles.Formats
{
// If this machine doesn't contain any writable items, skip
var itemsDict = ItemsDB.GetItemsForBucket(key, filter: true);
if (itemsDict == null || !ContainsWritable(itemsDict))
if (itemsDict == null || !ContainsWritableDB(itemsDict))
continue;
// Resolve the names in the block
@@ -324,7 +324,7 @@ namespace SabreTools.DatFiles.Formats
WriteStartGame(xtw, kvp.Value);
// Check for a "null" item
var datItem = ProcessNullifiedItem(kvp);
var datItem = ProcessNullifiedItemDB(kvp);
// Write out the item if we're not ignoring
if (!ShouldIgnore(datItem.Value, ignoreblanks))