Fix archive folder paths

This commit is contained in:
KillzXGaming 2020-03-18 11:58:08 -04:00
parent 1099da76a3
commit 025590f54b

View file

@ -1514,8 +1514,9 @@ namespace Toolbox
private void SearchArchive(BatchFormatExport.Settings settings, IArchiveFile archiveFile, private void SearchArchive(BatchFormatExport.Settings settings, IArchiveFile archiveFile,
string extension, string outputFolder, ExportMode exportMode) string extension, string outputFolder, ExportMode exportMode)
{ {
string ArchiveFilePath = Path.Combine(outputFolder, Path.GetFileNameWithoutExtension(((IFileFormat)archiveFile).FileName)); string ArchiveFilePath = outputFolder;
ArchiveFilePath = outputFolder; if (settings.SeperateArchiveFiles)
ArchiveFilePath = Path.Combine(outputFolder, Path.GetFileNameWithoutExtension(((IFileFormat)archiveFile).FileName));
foreach (var file in archiveFile.Files) foreach (var file in archiveFile.Files)
SearchFileFormat(settings, file.OpenFile(), extension, ArchiveFilePath, exportMode); SearchFileFormat(settings, file.OpenFile(), extension, ArchiveFilePath, exportMode);