Property | Type | Description | |
---|---|---|---|
Save | bool | ||
SaveSession | bool | ||
Settings | System |
Method | Description | |
---|---|---|
Get ( string key ) : string |
|
|
IsCompatible ( OSType type ) : bool |
Check if the current OS is compatible with the given type
|
|
Reload ( ) : void |
Reparse the settings.json file
|
|
Set ( string key, JToken value, bool session = true ) : void |
Set the value of a setting. Will automatically save.
|
|
SetPath ( string filePath ) : void |
Set the filePath of the settings.json file. Will automatically reload.
|
Method | Description | |
---|---|---|
Save ( ) : bool |
Save the current data to settings.json
|
|
SaveSession ( ) : bool | ||
Settings ( ) : System |
public static Get ( string key ) : string | ||
key | string | The setting to retrieve |
return | string |
public static IsCompatible ( OSType type ) : bool | ||
type | OSType | The type of OS to check for compatibility with |
return | bool |
public static Set ( string key, JToken value, bool session = true ) : void | ||
key | string | The name of the setting |
value | JToken | The new value of the setting |
session | bool | |
return | void |
public static SetPath ( string filePath ) : void | ||
filePath | string | The path of the file |
return | void |