Added 'Copy All' function to the 'Copy To' dialog for Unreal Export Table
This commit is contained in:
parent
475996aea6
commit
3cf7bbb25c
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user