Mods
Namespace: MordhauBuddy.Core
Parent Module: FileOps
Functions and values
Function or value | Description |
asyncDeleteZip(path)
Signature: path:string -> Async<unit>
|
Delete a zip if it exists
|
defaultDir
Signature: string option
|
Try to find the Mod directory
|
deleteDir(path)
Signature: path:string -> unit
|
Delete a directory if it exists
|
ensureFolder(name)
Signature: name:string -> unit
|
Creates a directory within the Mods directory if it does not exist
|
ensureModsFolder()
Signature: unit -> unit
|
Creates the Mods directory if it does not exist
|
getAllLocalMods()
Signature: unit -> ModInfoFile list
|
Get all cached and installed mods
|
getInstalled(dir)
Signature: dir:string -> ModInfoFile list * ModInfoFile list
|
Get all installed mods
|
getPakName(modId)
Signature: modId:int -> string
|
Build pak name from Mod Id
|
tryDisable dir modId
Signature: dir:string -> modId:int -> Result<bool,string>
|
Attempts to disable a mod by moving the pak into the cache
|
tryEnable dir modId
Signature: dir:string -> modId:int -> Result<bool,string>
|
Attempts to enable a mod by moving the pak into the mod folder
|
tryFindMods(dir)
Signature: dir:string -> bool
|
Determine if mods directory is valid
|
tryUninstall dir modId
Signature: dir:string -> modId:int -> Result<bool,string>
|
Try to delete the given mod
|