Skip to content

Commit 4e640ab

Browse files
committed
Add unused discs path inputs
1 parent 55b6bf1 commit 4e640ab

2 files changed

Lines changed: 85 additions & 0 deletions

File tree

RedumpTool/Features/BaseFeature.cs

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,82 @@ internal abstract class BaseFeature : Feature
3535
private const string _usernameName = "username";
3636
internal readonly StringInput UsernameInput = new(_usernameName, ["-u", "--username"], "Redump username");
3737

38+
#region Discs Path Filter Inputs
39+
40+
private const string _antiModchipName = "antimodchip";
41+
internal readonly BooleanInput AntiModchipInput = new(_antiModchipName, ["--anti-modchip"], "Filter by anti-modchip status");
42+
43+
private const string _barcodeName = "barcode";
44+
internal readonly FlagInput BarcodeInput = new(_barcodeName, ["--barcode"], "Filter by missing barcodes");
45+
46+
private const string _categoryName = "category";
47+
internal readonly StringInput CategoryInput = new(_categoryName, ["--category"], "Filter by disc category");
48+
49+
private const string _commentsName = "comments";
50+
internal readonly FlagInput CommentsInput = new(_commentsName, ["--comments"], "Filter by comments only, incompatible with --contents and --protection");
51+
52+
private const string _contentsName = "contents";
53+
internal readonly FlagInput ContentsInput = new(_contentsName, ["--contents"], "Filter by contents only, incompatible with --comments and --protection");
54+
55+
private const string _discTypeName = "disctype";
56+
internal readonly StringInput DiscTypeInput = new(_discTypeName, ["--disc-type"], "Filter by disc type, requires --system (cd, dvd)");
57+
58+
private const string _dumperName = "dumper";
59+
internal readonly StringInput DumperInput = new(_dumperName, ["--dumper"], "Filter by dumper");
60+
61+
private const string _edcName = "edc";
62+
internal readonly BooleanInput EdcInput = new(_edcName, ["--edc"], "Filter by EDC status");
63+
64+
private const string _editionName = "edition";
65+
internal readonly StringInput EditionInput = new(_editionName, ["--edition"], "Filter by edition");
66+
67+
private const string _errorsName = "errors";
68+
internal readonly StringInput ErrorsInput = new(_errorsName, ["--errors"], "Filter by errors");
69+
70+
private const string _languageName = "language";
71+
internal readonly StringInput LanguageInput = new(_languageName, ["--language"], "Filter by language");
72+
73+
private const string _letterName = "letter";
74+
internal readonly StringInput LetterInput = new(_letterName, ["--letter"], "Filter by first letter");
75+
76+
private const string _libCryptName = "libcrypt";
77+
internal readonly BooleanInput LibCryptInput = new(_libCryptName, ["--libcrypt"], "Filter by LibCrypt status");
78+
79+
private const string _mediaName = "media";
80+
internal readonly StringInput MediaInput = new(_mediaName, ["--media"], "Filter by media type");
81+
82+
private const string _offsetName = "offset";
83+
internal readonly Int32Input OffsetInput = new(_offsetName, ["--offset"], "Filter by disc offset");
84+
85+
private const string _protectionName = "protection";
86+
internal readonly FlagInput ProtectionInput = new(_protectionName, ["--protection"], "Filter by protection only, incompatible with --comments and --contents");
87+
88+
private const string _quickSearchName = "quicksearch";
89+
internal readonly StringInput QuickSearchInput = new(_quickSearchName, ["--quicksearch"], "Filter by quicksearch");
90+
91+
private const string _regionName = "region";
92+
internal readonly StringInput RegionInput = new(_regionName, ["--region"], "Filter by region");
93+
94+
private const string _ringcodeName = "ringcode";
95+
internal readonly StringInput RingcodeInput = new(_ringcodeName, ["--ringcode"], "Filter by ringcode");
96+
97+
private const string _sortName = "sort";
98+
internal readonly StringInput SortInput = new(_sortName, ["--sort"], "Sort results by criteria (added, region, system, version, edition, languages, serial, status, modified)");
99+
100+
private const string _sortDirName = "sortdir";
101+
internal readonly StringInput SortDirInput = new(_sortDirName, ["--sort-dir"], "Set sorting direction (asc, desc)");
102+
103+
private const string _statusName = "status";
104+
internal readonly StringInput StatusInput = new(_statusName, ["--status"], "Filter by status (grey, red, yellow, blue, green)");
105+
106+
private const string _systemName = "system";
107+
internal readonly StringInput SystemInput = new(_systemName, ["--system"], "Filter by system");
108+
109+
private const string _tracksName = "tracks";
110+
internal readonly Int32Input TracksInput = new(_tracksName, ["--tracks"], "Filter by track count (1-99)");
111+
112+
#endregion
113+
38114
#endregion
39115

40116
#region Fields

SabreTools.RedumpLib/Data/Enumerations.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,19 @@ public enum DiscType
152152
/// </summary>
153153
public enum DumpStatus
154154
{
155+
[HumanReadable(LongName = "Unknown", ShortName = "grey")]
155156
UnknownGrey = 1,
157+
158+
[HumanReadable(LongName = "Bad Dump", ShortName = "red")]
156159
BadDumpRed = 2,
160+
161+
[HumanReadable(LongName = "Possible Bad Dump", ShortName = "yellow")]
157162
PossibleBadDumpYellow = 3,
163+
164+
[HumanReadable(LongName = "Original Media", ShortName = "blue")]
158165
OriginalMediaBlue = 4,
166+
167+
[HumanReadable(LongName = "Two or More", ShortName = "green")]
159168
TwoOrMoreGreen = 5,
160169
}
161170

0 commit comments

Comments
 (0)