mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Handle M1 DATs natively
This commit is contained in:
@@ -622,6 +622,15 @@ namespace SabreTools.Helper
|
|||||||
}
|
}
|
||||||
xtr.Read();
|
xtr.Read();
|
||||||
break;
|
break;
|
||||||
|
// Handle M1 DATs since they're 99% the same as a SL DAT
|
||||||
|
case "m1":
|
||||||
|
datdata.Name = (String.IsNullOrEmpty(datdata.Name) ? "M1" : datdata.Name);
|
||||||
|
datdata.Description = (String.IsNullOrEmpty(datdata.Description) ? "M1" : datdata.Description);
|
||||||
|
if (xtr.GetAttribute("version") != null)
|
||||||
|
{
|
||||||
|
datdata.Version = (String.IsNullOrEmpty(datdata.Version) ? xtr.GetAttribute("version") : datdata.Version);
|
||||||
|
}
|
||||||
|
break;
|
||||||
case "header":
|
case "header":
|
||||||
// We want to process the entire subtree of the header
|
// We want to process the entire subtree of the header
|
||||||
headreader = xtr.ReadSubtree();
|
headreader = xtr.ReadSubtree();
|
||||||
|
|||||||
Reference in New Issue
Block a user