[ExtSplit] Prepare for multiple extensions per DAT

This commit is contained in:
Matt Nadareski
2016-06-10 16:58:45 -07:00
parent db409922d7
commit 91980cd610
3 changed files with 23 additions and 10 deletions

View File

@@ -416,6 +416,11 @@ namespace SabreTools
extb = extb.Replace("\"", "");
outdir = outdir.Replace("\"", "");
List<string> extaList = new List<string>();
extaList.Add(exta);
List<string> extbList = new List<string>();
extbList.Add(extb);
if (input != "" && File.Exists(input))
{
if (exta == "" || extb == "")
@@ -423,7 +428,7 @@ namespace SabreTools
_logger.Warning("Two extensions are needed to split a DAT!");
return;
}
ExtSplit es = new ExtSplit(input, exta, extb, outdir, _logger);
ExtSplit es = new ExtSplit(input, extaList, extbList, outdir, _logger);
es.Split();
return;
}