[SabreTools] Rearrange variables; remove unused

This commit is contained in:
Matt Nadareski
2016-10-03 22:14:38 -07:00
parent b5d01db1d7
commit 1338764eb6

View File

@@ -94,41 +94,48 @@ namespace SabreTools
seq = -1;
OutputFormat outputFormat = 0x0;
StatOutputFormat statOutputFormat = StatOutputFormat.None;
string addext = "",
string
// DAT fields
author = null,
category = null,
comment = null,
crc = "",
currentAllMerged = "",
currentMissingMerged = "",
currentNewMerged = "",
date = null,
description = null,
email = null,
exta = "",
extb = "",
filename = null,
forcemerge = "",
forcend = "",
forcepack = "",
gamename = "",
header = null,
homepage = "",
homepage = null,
name = null,
rootdir = null,
url = null,
version = null,
// Filter fields
crc = "",
gamename = "",
md5 = "",
outDir = "",
postfix = "",
prefix = "",
repext = "",
romname = "",
romtype = "",
root = "",
rootdir = null,
sha1 = "",
status = "",
tempDir = "",
url = null,
version = null;
// Missfile fields
addext = "",
postfix = "",
prefix = "",
repext = "",
// Misc fields
exta = "",
extb = "",
outDir = "",
tempDir = "";
List<string> inputs = new List<string>();
// Determine which switches are enabled (with values if necessary)
@@ -371,10 +378,6 @@ namespace SabreTools
{
comment = temparg.Split('=')[1] ?? "";
}
else if (temparg.StartsWith("-com=") || temparg.StartsWith("--com="))
{
currentAllMerged = temparg.Split('=')[1] ?? "";
}
else if (temparg.StartsWith("-crc=") || temparg.StartsWith("--crc="))
{
crc = temparg.Split('=')[1] ?? "";
@@ -403,10 +406,6 @@ namespace SabreTools
{
filename = temparg.Split('=')[1] ?? "";
}
else if (temparg.StartsWith("-fix=") || temparg.StartsWith("--fix="))
{
currentMissingMerged = temparg.Split('=')[1] ?? "";
}
else if (temparg.StartsWith("-fm=") || temparg.StartsWith("--forcemerge="))
{
forcemerge = temparg.Split('=')[1] ?? "";
@@ -451,10 +450,6 @@ namespace SabreTools
{
name = temparg.Split('=')[1] ?? "";
}
else if (temparg.StartsWith("-new=") || temparg.StartsWith("--new="))
{
currentNewMerged = temparg.Split('=')[1] ?? "";
}
else if (temparg.StartsWith("-out=") || temparg.StartsWith("--out="))
{
outDir = temparg.Split('=')[1] ?? "";