Tools for parsing and exploring PRI (Package Resource Index) files
Enumerate all resource map items:
using (FileStream stream = File.OpenRead(path))
{
PriFile priFile = PriFile.Parse(stream);
ResourceMapSection resourceMapSection = priFile.GetSectionByRef(priFile.PriDescriptorSection.PrimaryResourceMapSection.Value);
foreach (CandidateSet candidateSet in resourceMapSection.CandidateSets.Values)
{
ResourceMapItem resourceMapItem = priFile.GetResourceMapItemByRef(candidateSet.ResourceMapItem);
Console.WriteLine(resourceMapItem.FullName);
}
}
For more sample code, see the PriInfo project.
Apache 2.0, see LICENSE.
XBF2 decompilation code is by misenhower.