mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFile, RombaSharp] Fix build errors
This commit is contained in:
@@ -472,7 +472,7 @@ namespace RombaSharp
|
|||||||
private static void AddDatToDatabase(Rom dat, SqliteConnection dbc)
|
private static void AddDatToDatabase(Rom dat, SqliteConnection dbc)
|
||||||
{
|
{
|
||||||
// Get the dat full path
|
// 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
|
// Parse the Dat if possible
|
||||||
Globals.Logger.User("Adding from '" + dat.Name + "'");
|
Globals.Logger.User("Adding from '" + dat.Name + "'");
|
||||||
|
|||||||
@@ -402,19 +402,8 @@ namespace SabreTools.Library.Dats
|
|||||||
|
|
||||||
// Update rom information
|
// Update rom information
|
||||||
datItem.Name = romname;
|
datItem.Name = romname;
|
||||||
if (datItem.Machine == default(Machine))
|
datItem.MachineName = gamename;
|
||||||
{
|
datItem.Description = gamename;
|
||||||
datItem.Machine = new Machine
|
|
||||||
{
|
|
||||||
Name = gamename,
|
|
||||||
Description = gamename,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
datItem.Machine.UpdateName(gamename);
|
|
||||||
datItem.Machine.UpdateDescription(gamename);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add the file information to the DAT
|
// Add the file information to the DAT
|
||||||
Add(key, datItem);
|
Add(key, datItem);
|
||||||
|
|||||||
Reference in New Issue
Block a user