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
vehicleFolderstringVehicle folder to scan for
.pcfiles.preferredNamestringOptional preferred config filename or basename.
Returns
Load(string)
Loads and parses a .pc configuration file from the specified path.
public static PcConfig Load(string pcFilePath)
Parameters
pcFilePathstringThe absolute path to the .pc file.