Added 'Copy All' function to the 'Copy To' dialog for Unreal Export Table

This commit is contained in:
Michael Becker 2014-07-08 16:58:32 -04:00
parent 475996aea6
commit 3cf7bbb25c

View File

@ -239,6 +239,23 @@ namespace UniversalEditor.Editors.UnrealEngine
}
}
}
else
{
FolderBrowserDialog dlg = new FolderBrowserDialog();
if (dlg.ShowDialog() == DialogResult.OK)
{
foreach (ListViewItem lvi in lvExportTable.Items)
{
ExportTableEntry ete = (lvi.Tag as ExportTableEntry);
if (ete == null) continue;
string fileName = dlg.SelectedPath + System.IO.Path.DirectorySeparatorChar.ToString() + ete.Name.Name;
byte[] data = ete.GetData();
if (data == null) data = new byte[0];
System.IO.File.WriteAllBytes(fileName, data);
}
}
}
}
}
}