mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[SabreTools] Hook up the new "Of-As-Game" flag
This commit is contained in:
@@ -963,6 +963,11 @@ Options:
|
||||
00 means exactly equals '00'
|
||||
Multiples of each of the above inputs are allowed.
|
||||
|
||||
-ofg, --of-as-game Allow cloneof and romof tags to match game name filters
|
||||
If filter or exclude by game name is used, this flag will allow those filters to
|
||||
be checked against the romof and cloneof tags as well. This can allow for more
|
||||
advanced set-building, especially in arcade-based sets.
|
||||
|
||||
-rt=, --rom-type= Filter by rom type
|
||||
This allows users to only include roms or disks to their liking. Multiples of this
|
||||
input are allowed.
|
||||
|
||||
@@ -1078,6 +1078,11 @@ namespace SabreTools
|
||||
"Filter by not game name",
|
||||
FeatureType.List,
|
||||
null));
|
||||
update.AddFeature("of-as-game", new Feature(
|
||||
new List<string>() { "-ofg", "--of-as-game" },
|
||||
"Allow cloneof and romof tags to match game name filters",
|
||||
FeatureType.Flag,
|
||||
null));
|
||||
update.AddFeature("rom-name", new Feature(
|
||||
new List<string>() { "-rn", "--rom-name" },
|
||||
"Filter by rom name",
|
||||
|
||||
@@ -414,6 +414,10 @@ namespace SabreTools
|
||||
case "--output-dc":
|
||||
datFormat |= DatFormat.DOSCenter;
|
||||
break;
|
||||
case "-ofg":
|
||||
case "--of-as-game":
|
||||
filter.IncludeOfInGame = true;
|
||||
break;
|
||||
case "-om":
|
||||
case "--output-miss":
|
||||
datFormat |= DatFormat.MissFile;
|
||||
|
||||
Reference in New Issue
Block a user