mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Empty means error
This commit is contained in:
@@ -56,7 +56,7 @@ namespace SabreTools
|
||||
|
||||
// First things first, take care of all of the arguments that this could have
|
||||
_noMD5 = false; _noSHA1 = false; _forceunzip = false; _allfiles = false; _old = false;
|
||||
_name = ""; _desc = ""; _cat = ""; _version = ""; _author = "";
|
||||
_name = ""; _desc = ""; _cat = ""; _version = ""; _author = ""; _basePath = "";
|
||||
List<string> inputs = new List<string>();
|
||||
foreach (string arg in args)
|
||||
{
|
||||
@@ -167,6 +167,14 @@ namespace SabreTools
|
||||
}
|
||||
}
|
||||
|
||||
// If we found nothing (error state), show the help and exit
|
||||
if (_roms.Count == 0)
|
||||
{
|
||||
Console.WriteLine();
|
||||
Build.Help();
|
||||
return;
|
||||
}
|
||||
|
||||
// Order the roms by name of parent, then name of rom
|
||||
_roms.Sort(delegate (RomData A, RomData B)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user