private bool DeepScanPCC(string filename)
{
try
{
using (PCCObjects.IPCCObject temppcc = PCCObjects.Creation.CreatePCCObject(filename, WhichGame))
{
// KFreon: Search the Exports list for viable texture types
for (int i = 0; i < temppcc.Exports.Count; i++)
{
//TreeTexInfo tex = KFreonFormsLib.Miscextra.GenerateTexStruct(temppcc, i, WhichGame, pathBIOGame, ExecFolder, allpccs);
bool result;
TreeTexInfo tex = new TreeTexInfo(temppcc, i, WhichGame, pathBIOGame, ExecFolder, out result);
if (result)
Tree.AddTex(tex, (WhichGame == 1) ? temppcc.Exports[i].Package : "", filename);
}
}
}
catch(Exception e)
{
DebugOutput.PrintLn("Scanning PCC: " + filename + " failed. Reason: " + e.ToString());
return false;
}
return true;
}