[SabreTools] Hook up the new "Of-As-Game" flag

This commit is contained in:
Matt Nadareski
2017-02-08 14:22:56 -08:00
parent 77be3b3d84
commit a7083476d3
3 changed files with 14 additions and 0 deletions

View File

@@ -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.

View File

@@ -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",

View File

@@ -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;