private void AnalyseVsTree()
{
// KFreon: Change GUI
gooey.ModifyControl("Rebuild", true);
gooey.ModifyControl("RunAutofix", true);
gooey.ModifyControl("extractInvalid", true);
gooey.ModifyControl("extractValids", true);
gooey.ModifyControl("Analyse", false);
DebugOutput.PrintLn("Matching hashes...");
Overall.UpdateText("Matching hashes...");
OverallProg.ChangeProgressBar(0);
MatchHashes();
FindTreeDuplicates();
DebugOutput.PrintLn("Finished searching for duplicates.");
// KFreon: Change GUI
gooey.ModifyControl("Load", true);
//gooey.ModifyControl("MODtoTPF", true);
gooey.ModifyControl("extractInvalid", true);
gooey.ModifyControl("extractValids", true);
gooey.ModifyControl("RunAutofix", true);
// Heff: mark as analysed
foreach (var tex in LoadedTexes)
tex.wasAnalysed = true;
RedrawTreeView();
OverallProg.ChangeProgressBar(1, 1);
Overall.UpdateText("Matching complete! " + numValid + " valid out of " + numImages + " images.");
gooey.ModifyControl("ExtractTOP", true);
gooey.ModifyControl("ClearAll", true);
gooey.ModifyControl("Rebuild", true);
gooey.ModifyControl("AutofixSingleButton", false);
CheckNodes(LoadedTexes);
}