private void searchQbFile(testSearchItem callback) { QbFile qbf; foreach (PakHeaderItem phi in _pakFile.Headers.Values) { if (phi.PakFileType == PakItemType.Qb || phi.PakFileType == PakItemType.Sqb || phi.PakFileType == PakItemType.Midi) { qbf = _pakFile.ReadQbFile(phi.Filename, loadDbgQBFile(phi.Filename)); searchItems(qbf, qbf.Items, callback); } } }
private void searchItems(QbFile qbFile, List<QbItemBase> qibs, testSearchItem callback) { foreach (QbItemBase qib in qibs) { callback(qbFile, qib); if (qib.Items.Count != 0) searchItems(qbFile, qib.Items, callback); } }