ModCommandLine Class |
Namespace: UMod
public sealed class ModCommandLine
The ModCommandLine type exposes the following members.
Name | Description | |
---|---|---|
AllMods |
Attempts to enumerate all paths found in the command line.
This property may result in the command line being parsed automatically.
| |
HasMods |
Returns true if the command line contains any mod paths;
This property may result in the command line being parsed automatically.
| |
SingleMod |
Attempts to access a single mod path from the command line if one exists.
This property will always return the first found path within the command line and any other paths will be ignored.
This property may result in the command line being parsed automatically.
|
Name | Description | |
---|---|---|
GetEnvironmentString |
Attempts to access the command line string generated by the application and combines it into a single space
separated string.
| |
Parse |
Begins parsing the application command line as provided by GetEnvironmentString(Boolean) to find any
mod paths specified for loading.
This method may result in the OnModCommandLine event being triggered if any mod paths are found.
| |
ParseString |
Attempts to parse a user provided string to find any mod paths specified for loading.
This method may result in the OnModCommandLine event being triggered if any mod paths are found.
|
Name | Description | |
---|---|---|
OnModCommandLine |
This event is called when the command line is being parsed and detects a mod path.
The mod path is passed to this delegate and can then be loaded.
|