Start getting design together

First and foremost are the Generate options, which are populated with functions similar to ListSystems and ListSources.
This commit is contained in:
Matt Nadareski
2016-03-29 21:23:22 -07:00
parent a33036b3e0
commit ac03051e04
7 changed files with 319 additions and 19 deletions

View File

@@ -52,7 +52,7 @@ namespace SabreTools
// Determine which switches are enabled (with values if necessary)
bool help = false, import = false, generate = false, convert = false,
listsys = false, listsrc = false, norename = false, old = false,
log = false, genall = false, add = false, rem = false;
log = false, genall = false, add = false, rem = false, skip = false;
string systems = "", sources = "", input = "", manu = "", url = "";
foreach (string arg in args)
{
@@ -71,6 +71,7 @@ namespace SabreTools
log = log || (arg == "-l" || arg == "--log");
old = old || (arg == "-old" || arg == "--romvault");
norename = norename || (arg == "-nr" || arg == "--no-rename");
skip = skip || (arg == "--skip");
// User input strings
systems = (arg.StartsWith("system=") && systems == "" ? arg.Split('=')[1] : systems);
@@ -89,6 +90,12 @@ namespace SabreTools
input == "" ? arg : input);
}
// If skip is set, it's being called from the UI so we just exit
if (skip)
{
return;
}
// If more than one switch is enabled or help is set, show the help screen
if (help || !(import ^ generate ^ listsys ^ listsrc ^ genall ^ add ^ rem))
{