[DatFile, RombaSharp] Fix build errors

This commit is contained in:
Matt Nadareski
2017-10-06 17:49:47 -07:00
parent a401cbebf4
commit 249e64bdbb
2 changed files with 3 additions and 14 deletions

View File

@@ -472,7 +472,7 @@ namespace RombaSharp
private static void AddDatToDatabase(Rom dat, SqliteConnection dbc)
{
// Get the dat full path
string fullpath = Path.Combine(_dats, (dat.Machine.Name == "dats" ? "" : dat.Machine.Name), dat.Name);
string fullpath = Path.Combine(_dats, (dat.MachineName == "dats" ? "" : dat.MachineName), dat.Name);
// Parse the Dat if possible
Globals.Logger.User("Adding from '" + dat.Name + "'");

View File

@@ -402,19 +402,8 @@ namespace SabreTools.Library.Dats
// Update rom information
datItem.Name = romname;
if (datItem.Machine == default(Machine))
{
datItem.Machine = new Machine
{
Name = gamename,
Description = gamename,
};
}
else
{
datItem.Machine.UpdateName(gamename);
datItem.Machine.UpdateDescription(gamename);
}
datItem.MachineName = gamename;
datItem.Description = gamename;
// Add the file information to the DAT
Add(key, datItem);