1
0
mirror of synced 2024-11-12 02:00:50 +01:00

One more path fix so directory is always created if textures are present

This commit is contained in:
KillzXGaming 2020-03-18 12:00:49 -04:00
parent 025590f54b
commit 9df4bf6068

View File

@ -1472,10 +1472,11 @@ namespace Toolbox
SearchArchive(settings, (IArchiveFile)fileFormat, extension, outputFolder, exportMode); SearchArchive(settings, (IArchiveFile)fileFormat, extension, outputFolder, exportMode);
else if (fileFormat is ITextureContainer && exportMode == ExportMode.Textures) else if (fileFormat is ITextureContainer && exportMode == ExportMode.Textures)
{ {
if (settings.SeperateTextureContainers && ((ITextureContainer)fileFormat).TextureList.Count > 0) string name = fileFormat.FileName.Split('.').FirstOrDefault();
outputFolder = Path.Combine(outputFolder, name);
if (((ITextureContainer)fileFormat).TextureList.Count > 0)
{ {
string name = fileFormat.FileName.Split('.').FirstOrDefault();
outputFolder = Path.Combine(outputFolder, name);
if (!Directory.Exists(outputFolder)) if (!Directory.Exists(outputFolder))
Directory.CreateDirectory(outputFolder); Directory.CreateDirectory(outputFolder);
} }