A lightweight library for reading RAF files which are used in League of Legends. Licensed under the GPLv3.
var archive = RiotArchive.FromFile("archive.raf");
var stream = archive["file1.txt"].GetStream();
Sometimes content may be split into multiple archives. The RiotArchiveCollection
offers easy access to any file within the entire RAF collection.
var archives = new RiotArchiveCollection(Directory.GetFiles("C:/raf-archives/", "*.raf"));
archives.Open();
var stream = archives["cool-kids.pdf"].GetStream();
var matchedFiles = archives.GetFiles(@"^awesome.*\.txt$");
The RiotArchive
and RiotArchiveCollection
classes share a common API so they are interchangeable.
No dependencies - all the code needed is embedded within the assembly.