MordhauBuddy


INI

Namespace: MordhauBuddy.Core
Parent Module: BridgeOperations Attributes:
[<RequireQualifiedAccess>]

INI related bridge commands

Functions and values

Function or valueDescription
INI.backup(iFile)
Signature: iFile:INIFile -> bool

Create a backup of a file by putting it into a subdirectory

INI.cleanBackups bSet iFile
Signature: bSet:BackupSettings -> iFile:INIFile -> unit

Clean backup files based on given policy

INI.custom profiles iVal fVals
Signature: profiles:string list -> iVal:INIValue -> fVals:string -> INIValue option

Set the profiles to a custom import string if they are within the given INIValue

INI.defDir()
Signature: unit -> string option

Try to locate the default Mordhau configuration directory

INI.delete oVal selectors
Signature: oVal:INIValue -> selectors:string list -> INIValue

Delete contents of oVal that match selectors

INI.exists(iFile)
Signature: iFile:INIFile -> bool

Determine if a file exists

INI.frankenstein profiles iVal
Signature: profiles:string list -> iVal:INIValue -> INIValue option

Frankenstein the profiles if they are within the given INIValue

INI.getConfigs(...)
Signature: engine:INIValue -> gameUser:INIValue -> input:INIValue -> options:OptionGroup list -> OptionGroup list

Get the configurations set in the two INIValues if present

INI.mapConfigs(...)
Signature: engine:INIValue -> gameUser:INIValue -> input:INIValue -> options:OptionGroup list -> INIValue option * INIValue option * INIValue option

Apply the new values into the two INIValues or add them

INI.parse(iFile)
Signature: iFile:INIFile -> INIValue option

Try to open and parse a ini file

INI.profileList(iVal)
Signature: iVal:INIValue -> (string * string) list

Get the profiles within the given INIValue

INI.random profiles iVal
Signature: profiles:string list -> iVal:INIValue -> INIValue option

Ranomize the profiles if they are within the given INIValue

INI.replace oVal iVal selectors
Signature: oVal:INIValue -> iVal:INIValue -> selectors:string list -> INIValue

Replace the oVal with iVal based on selectors

INI.write iFile iVal
Signature: iFile:INIFile -> iVal:INIValue -> bool

Write an INIValue to a file, overwriting if it already exists