mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Add 4 missing fields to Archive
This commit is contained in:
@@ -88,6 +88,10 @@ namespace SabreTools.Filtering
|
||||
public FilterItem<string> Clone { get; private set; } = new FilterItem<string>();
|
||||
public FilterItem<string> RegParent { get; private set; } = new FilterItem<string>();
|
||||
public FilterItem<string> Languages { get; private set; } = new FilterItem<string>();
|
||||
public FilterItem<string> DevStatus { get; private set; } = new FilterItem<string>();
|
||||
public FilterItem<string> Physical { get; private set; } = new FilterItem<string>();
|
||||
public FilterItem<string> Complete { get; private set; } = new FilterItem<string>();
|
||||
public FilterItem<string> Categories { get; private set; } = new FilterItem<string>();
|
||||
|
||||
// BiosSet
|
||||
public FilterItem<string> Description { get; private set; } = new FilterItem<string>();
|
||||
@@ -457,6 +461,22 @@ namespace SabreTools.Filtering
|
||||
SetStringFilter(Languages, value, negate);
|
||||
break;
|
||||
|
||||
case DatItemField.DevStatus:
|
||||
SetStringFilter(DevStatus, value, negate);
|
||||
break;
|
||||
|
||||
case DatItemField.Physical:
|
||||
SetStringFilter(Physical, value, negate);
|
||||
break;
|
||||
|
||||
case DatItemField.Complete:
|
||||
SetStringFilter(Complete, value, negate);
|
||||
break;
|
||||
|
||||
case DatItemField.Categories:
|
||||
SetStringFilter(Categories, value, negate);
|
||||
break;
|
||||
|
||||
// BiosSet
|
||||
case DatItemField.Description:
|
||||
SetStringFilter(Description, value, negate);
|
||||
@@ -985,6 +1005,22 @@ namespace SabreTools.Filtering
|
||||
if (!PassStringFilter(Languages, archive.Languages))
|
||||
return false;
|
||||
|
||||
// Filter on dev status
|
||||
if (!PassStringFilter(DevStatus, archive.DevStatus))
|
||||
return false;
|
||||
|
||||
// Filter on physical
|
||||
if (!PassStringFilter(Physical, archive.Physical))
|
||||
return false;
|
||||
|
||||
// Filter on complete
|
||||
if (!PassStringFilter(Complete, archive.Complete))
|
||||
return false;
|
||||
|
||||
// Filter on categories
|
||||
if (!PassStringFilter(Categories, archive.Categories))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user