Replace usages of Name field (nw)

This commit is contained in:
Matt Nadareski
2024-03-08 20:42:24 -05:00
parent 71dcc04558
commit 2dbe257023
59 changed files with 268 additions and 564 deletions

View File

@@ -785,10 +785,10 @@ CREATE TABLE IF NOT EXISTS dat (
internal void AddDatToDatabase(Rom dat, SqliteConnection dbc)
{
// Get the dat full path
string fullpath = Path.Combine(_dats!, (dat.Machine.Name == "dats" ? string.Empty : dat.Machine.Name)!, dat.Name!);
string fullpath = Path.Combine(_dats!, (dat.Machine.Name == "dats" ? string.Empty : dat.Machine.Name)!, dat.GetName()!);
// Parse the Dat if possible
logger.User($"Adding from '{dat.Name}'");
logger.User($"Adding from '{dat.GetName()}'");
DatFile tempdat = Parser.CreateAndParse(fullpath);
// If the Dat wasn't empty, add the information