MordhauBuddy


MordhauConfig

Namespace: MordhauBuddy.Core
Parent Module: INIConfiguration

Module for modifying Game and GameUserSettings ini files

Functions and values

Function or valueDescription
castKV def iVal
Signature: def:Values -> iVal:INIValue option -> Values option

Try to cast an INIValue to KeyValue primative

filterFile options file
Signature: options:OptionGroup list -> file:ConfigFile -> OptionGroup list

Filter the OptionGroup list based on File given

getSettings(...)
Signature: engineFile:INIValue -> gameUserFile:INIValue -> inputFile:INIValue -> options:OptionGroup list -> OptionGroup list

Get current settings of the OptionGroup list if present in the configuration files

logger
Signature: Logger
mapGroupSettings props kvList
Signature: props:INIValue list -> kvList:KeyValues list -> KeyValues list

Map the group settings if they're present in the given INIValue list

mapOptGroup oGroup props
Signature: oGroup:OptionGroup -> props:INIValue list -> OptionGroup

Map the option groups via mapGroupSettings

mapOptions iFile selectors options
Signature: iFile:INIValue -> selectors:string list -> options:OptionGroup list -> INIValue

Applies the OptionGroup list Settings to the given INIValue based on the selectors

mapOptionToINIValue(...)
Signature: iVal:INIValue -> setting:KeyValues -> selectors:string list -> INIValue

Maps the option value if present to the INIValue or adds it

tryMapSettings(...)
Signature: engineFile:INIValue -> gameUserFile:INIValue -> inputFile:INIValue -> options:OptionGroup list -> INIValue option * INIValue option * INIValue option

Map the OptionGroup list values to the Engine.ini, GameUserSettings.ini, and Input.ini if present