mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[Enums, DatFile, Machine] Machine types never overlap
This commit is contained in:
@@ -1249,9 +1249,11 @@ namespace SabreTools.Helper.Dats
|
||||
CloneOf = xtr.GetAttribute("cloneof") ?? "",
|
||||
SampleOf = xtr.GetAttribute("sampleof") ?? "",
|
||||
|
||||
IsBios = xtr.GetAttribute("isbios") == "yes",
|
||||
IsDevice = xtr.GetAttribute("isdevice") == "yes",
|
||||
IsMechanical = xtr.GetAttribute("ismechanical") == "yes",
|
||||
MachineType =
|
||||
xtr.GetAttribute("isbios") == "yes" ? MachineType.Bios :
|
||||
xtr.GetAttribute("isdevice") == "yes" ? MachineType.Device :
|
||||
xtr.GetAttribute("ismechanical") == "yes" ? MachineType.Mechanical :
|
||||
MachineType.None,
|
||||
Runnable = xtr.GetAttribute("runnable") == "yes",
|
||||
};
|
||||
|
||||
@@ -1268,6 +1270,7 @@ namespace SabreTools.Helper.Dats
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (superdat && !keep)
|
||||
{
|
||||
string tempout = Regex.Match(machine.Name, @".*?\\(.*)").Groups[1].Value;
|
||||
|
||||
Reference in New Issue
Block a user