mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFile] Make Machine a struct for memory usage
This commit is contained in:
@@ -402,7 +402,7 @@ namespace SabreTools.Library.Dats
|
||||
|
||||
// Update rom information
|
||||
datItem.Name = romname;
|
||||
if (datItem.Machine == null)
|
||||
if (datItem.Machine == default(Machine))
|
||||
{
|
||||
datItem.Machine = new Machine
|
||||
{
|
||||
@@ -412,8 +412,8 @@ namespace SabreTools.Library.Dats
|
||||
}
|
||||
else
|
||||
{
|
||||
datItem.Machine.Name = gamename;
|
||||
datItem.Machine.Description = gamename;
|
||||
datItem.Machine.UpdateName(gamename);
|
||||
datItem.Machine.UpdateDescription(gamename);
|
||||
}
|
||||
|
||||
// Add the file information to the DAT
|
||||
|
||||
Reference in New Issue
Block a user