mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Add ControlType, fix a bunch of numerics
This commit is contained in:
@@ -76,10 +76,7 @@ namespace SabreTools.Library.DatItems
|
||||
ChipType = mappings[Field.DatItem_ChipType].AsChipType();
|
||||
|
||||
if (mappings.Keys.Contains(Field.DatItem_Clock))
|
||||
{
|
||||
if (Int64.TryParse(mappings[Field.DatItem_Clock], out long clock))
|
||||
Clock = clock;
|
||||
}
|
||||
Clock = Sanitizer.CleanLong(mappings[Field.DatItem_Clock]);
|
||||
}
|
||||
|
||||
#endregion
|
||||
@@ -198,9 +195,11 @@ namespace SabreTools.Library.DatItems
|
||||
return false;
|
||||
|
||||
// DatItem_Clock
|
||||
if (filter.DatItem_Clock.MatchesPositive(null, Clock) == false)
|
||||
if (filter.DatItem_Clock.MatchesNeutral(null, Clock) == false)
|
||||
return false;
|
||||
if (filter.DatItem_Clock.MatchesNegative(null, Clock) == true)
|
||||
else if (filter.DatItem_Clock.MatchesPositive(null, Clock) == false)
|
||||
return false;
|
||||
else if (filter.DatItem_Clock.MatchesNegative(null, Clock) == false)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user