private void extractInvalidToolStripMenuItem_Click(object sender, EventArgs e)
{
string outputPath = "";
var dialog = new CommonOpenFileDialog();
dialog.IsFolderPicker = true;
dialog.EnsurePathExists = true;
if (dialog.ShowDialog() == CommonFileDialogResult.Ok)
outputPath = dialog.FileName;
else
return;
Overall.UpdateText("Extracting " + LoadedTexes.Where(r => !r.Valid && !r.isDef).Count() + " invalid textures...");
Extractor(outputPath, null, t => !t.Valid && !t.isDef);
Overall.UpdateText("All invalids extracted!");
}