mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[SabreTools, DatFile] Add runnable as a filterable field
This commit is contained in:
@@ -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)");
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user