mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[ExtSplit] Prepare for multiple extensions per DAT
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user