mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Convert Rom size field to long?
This commit is contained in:
@@ -158,26 +158,18 @@ namespace SabreTools.Library.Skippers
|
||||
{
|
||||
string offset = xtr.GetAttribute("start_offset");
|
||||
if (offset.ToLowerInvariant() == "eof")
|
||||
{
|
||||
rule.StartOffset = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
rule.StartOffset = Convert.ToInt64(offset, 16);
|
||||
}
|
||||
}
|
||||
|
||||
if (xtr.GetAttribute("end_offset") != null)
|
||||
{
|
||||
string offset = xtr.GetAttribute("end_offset");
|
||||
if (offset.ToLowerInvariant() == "eof")
|
||||
{
|
||||
rule.EndOffset = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
rule.EndOffset = Convert.ToInt64(offset, 16);
|
||||
}
|
||||
}
|
||||
|
||||
if (xtr.GetAttribute("operation") != null)
|
||||
|
||||
Reference in New Issue
Block a user