Table of Contents

Class PcConfigLoader

Namespace
LibreRally.Vehicle.JBeam
Assembly
LibreRally.dll

Parses BeamNG .pc files (standard JSON with trailing commas allowed) into PcConfig.

public static class PcConfigLoader
Inheritance
PcConfigLoader
Inherited Members

Methods

FindBestConfig(string, string?)

Finds the best .pc file to use from a vehicle folder. Priority: exact name match → "rally_pro_asphalt" → first .pc file found.

public static string? FindBestConfig(string vehicleFolder, string? preferredName = null)

Parameters

vehicleFolder string

Vehicle folder to scan for .pc files.

preferredName string

Optional preferred config filename or basename.

Returns

string

The selected config path when one is found; otherwise null.

Load(string)

Loads and parses a .pc configuration file from the specified path.

public static PcConfig Load(string pcFilePath)

Parameters

pcFilePath string

The absolute path to the .pc file.

Returns

PcConfig

A PcConfig object containing the parsed settings.