ME3Explorer.KFreonTPFTools3.CheckTextures C# (CSharp) Method

CheckTextures() private method

private CheckTextures ( ) : bool
return bool
        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;
        }
KFreonTPFTools3