private bool CheckTextures()
{
bool retval = true;
ParallelOptions po = new ParallelOptions();
po.MaxDegreeOfParallelism = Properties.Settings.Default.NumThreads;
DebugOutput.PrintLn("Checking textures and finding tree duplicates...");
for (int i = 0; i < LoadedTexes.Count; i++)
{
TPFTexInfo tex = LoadedTexes[i];
if (cts.IsCancellationRequested)
return false;
// KFreon: Found only
if (!tex.found || tex.isDef)
continue;
else
LoadedTexes[i] = tex;
OverallProg.IncrementBar();
}
if (cts.IsCancellationRequested)
retval = false;
return retval;
}