mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Parser tests, part 4
This commit is contained in:
@@ -537,6 +537,7 @@ namespace SabreTools.DatFiles.Formats
|
||||
FlipX = reader.GetAttribute("flipx").AsYesNo(),
|
||||
Width = Utilities.CleanLong(reader.GetAttribute("width")),
|
||||
Height = Utilities.CleanLong(reader.GetAttribute("height")),
|
||||
Refresh = Utilities.CleanDouble(reader.GetAttribute("refresh")),
|
||||
PixClock = Utilities.CleanLong(reader.GetAttribute("pixclock")),
|
||||
HTotal = Utilities.CleanLong(reader.GetAttribute("htotal")),
|
||||
HBEnd = Utilities.CleanLong(reader.GetAttribute("hbend")),
|
||||
@@ -552,13 +553,6 @@ namespace SabreTools.DatFiles.Formats
|
||||
},
|
||||
};
|
||||
|
||||
// Set the refresh
|
||||
if (reader.GetAttribute("refresh") != null)
|
||||
{
|
||||
if (Double.TryParse(reader.GetAttribute("refresh"), out double refresh))
|
||||
display.Refresh = refresh;
|
||||
}
|
||||
|
||||
datItems.Add(display);
|
||||
|
||||
reader.Read();
|
||||
|
||||
Reference in New Issue
Block a user