[SabreTools, DatFile] Add runnable as a filterable field

This commit is contained in:
Matt Nadareski
2017-01-08 23:28:19 -08:00
parent d95551e9da
commit 36c4394988
5 changed files with 22 additions and 3 deletions

View File

@@ -365,6 +365,8 @@ namespace SabreTools.Helper.Data
helptext.Add(" -ngt=, --not-gtype= Exclude only games with a given type");
helptext.Add(" Supported values are:");
helptext.Add(" None, Bios, Device, Mechanical");
helptext.Add(" -run, --runnable Include only items that are marked runnable");
helptext.Add(" -nrun, --not-run Include only items that are marked unrunnable");
helptext.Add(" -out= Output directory (overridden by --inplace)");
helptext.Add(" -mt={4} Amount of threads to use (-1 unlimted)");

View File

@@ -1254,7 +1254,7 @@ namespace SabreTools.Helper.Dats
xtr.GetAttribute("isdevice") == "yes" ? MachineType.Device :
xtr.GetAttribute("ismechanical") == "yes" ? MachineType.Mechanical :
MachineType.None,
Runnable = xtr.GetAttribute("runnable") == "yes",
Runnable = xtr.GetAttribute("runnable") == "yes" || xtr.GetAttribute("runnable") == null,
};
if (subreader.GetAttribute("supported") != null)

View File

@@ -836,6 +836,12 @@ Options:
Exclude items with one of the supported values:
None, Bios, Device, Mechanical
-run, --runnable Include only items that are marked runnable
This allows users to include only verified runnable games
-nrun, --not-run Include only items that are not marked runnable
This allows users to include only unrunnable games
-out= Set the name of the output directory
This sets an output folder to be used when the files are created. If a path
is not defined, the application directory is used instead.