Do sub folder creation for batch exporting bflim too
This commit is contained in:
parent
ab5e4d7562
commit
131a7b940a
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -207,7 +207,17 @@ namespace FirstPlugin
|
|||||||
if (FileFormat == null)
|
if (FileFormat == null)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
SearchBinary(FileFormat, folderDialog.SelectedPath, Extension);
|
|
||||||
|
if (FileFormat is SARC)
|
||||||
|
{
|
||||||
|
string ArchiveFilePath = Path.Combine(folderDialog.SelectedPath, Path.GetFileNameWithoutExtension(file));
|
||||||
|
if (!Directory.Exists(ArchiveFilePath))
|
||||||
|
Directory.CreateDirectory(ArchiveFilePath);
|
||||||
|
|
||||||
|
SearchBinary(FileFormat, ArchiveFilePath, Extension);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
SearchBinary(FileFormat, folderDialog.SelectedPath, Extension);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -218,13 +228,17 @@ namespace FirstPlugin
|
|||||||
{
|
{
|
||||||
if (FileFormat is SARC)
|
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)
|
foreach (var file in ((SARC)FileFormat).Files)
|
||||||
{
|
{
|
||||||
var archiveFile = STFileLoader.OpenFileFormat(file.FileName, new Type[] { typeof(BFLIM) , typeof(SARC) }, file.FileData);
|
var archiveFile = STFileLoader.OpenFileFormat(file.FileName, new Type[] { typeof(BFLIM) , typeof(SARC) }, file.FileData);
|
||||||
if (archiveFile == null)
|
if (archiveFile == null)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
SearchBinary(archiveFile, Folder, Extension);
|
SearchBinary(archiveFile, ArchiveFilePath, Extension);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (FileFormat is BFLIM)
|
if (FileFormat is BFLIM)
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user