A complete ROFL parser for C#
Package Manager
Install-Package Fraxiinus.Rofl.Extract.Data
.NET CLI
dotnet add package Fraxiinus.Rofl.Extract.Data
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.