Create a folder for each sub archive within an archive when batch exporting
This commit is contained in:
parent
208f25408b
commit
5d6048f019
Binary file not shown.
@ -144,13 +144,17 @@ namespace FirstPlugin
|
||||
{
|
||||
if (FileFormat is SARC)
|
||||
{
|
||||
string ArchiveFilePath = Path.Combine(Folder, Path.GetFileNameWithoutExtension(FileFormat.FileName));
|
||||
if (!Directory.Exists(ArchiveFilePath))
|
||||
Directory.CreateDirectory(ArchiveFilePath);
|
||||
|
||||
foreach (var file in ((SARC)FileFormat).Files)
|
||||
{
|
||||
var archiveFile = STFileLoader.OpenFileFormat(file.FileName, new Type[] { typeof(BNTX), typeof(BFRES), typeof(PTCL), typeof(SARC) }, file.FileData);
|
||||
if (archiveFile == null)
|
||||
continue;
|
||||
|
||||
SearchBinary(archiveFile, Folder, Extension);
|
||||
SearchBinary(archiveFile, ArchiveFilePath, Extension);
|
||||
}
|
||||
}
|
||||
if (FileFormat is BNTX)
|
||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user