/roflxd.cs

roflxd (.NET 6+ vers.) - for League of Legends replay files

Primary LanguageC#MIT LicenseMIT

roflxd.cs - ROFL eXtract Data (C# vers.)

Go back to roflxd overview

A complete ROFL parser for C#

Installing

nuget.org package listing

Package Manager

Install-Package Fraxiinus.Rofl.Extract.Data

.NET CLI

dotnet add package Fraxiinus.Rofl.Extract.Data

Usage

Use the RoflReader class to read ROFL files by running the LoadAsync method with the file path.

var replay = await RoflReader.LoadAsync("C:\\Documents\\File.rofl");

If the payload is required, use the optional parameter to let the parser know to not skip it:

var replay = await RoflReader.LoadAsync("C:\\Documents\\File.rofl", loadAll: true);

Once the file is loaded, you are free to access the parsed data:

Console.WriteLine(replay.PayloadHeader!.GameId);

All the async functions support CancellationTokens.