Class PluginConfigurations
Configuration to store settings for a dalamud plugin.
Assembly: Dalamud.dll
View Source
Declaration
public sealed class PluginConfigurations
Methods
Save(IPluginConfiguration, string, Guid)
Save/Load plugin configuration. NOTE: Save/Load are still using Type information for now, despite LoadForType superseding Load and not requiring or using it. It might be worth removing the Type info from Save, to strip it from all future saved configs, and then Load() can probably be removed entirely.
View Source
Declaration
public void Save(IPluginConfiguration config, string pluginName, Guid workingPluginId)
Parameters
Type | Name | Description |
---|---|---|
Dalamud.Configuration.IPluginConfiguration | config | Plugin configuration. |
System.String | pluginName | Plugin name. |
System.Guid | workingPluginId | WorkingPluginId of the plugin. |
Load(string, Guid)
Load plugin configuration.
View Source
Declaration
public IPluginConfiguration? Load(string pluginName, Guid workingPluginId)
Returns
Dalamud.Configuration.IPluginConfiguration: Plugin configuration.
Parameters
Type | Name | Description |
---|---|---|
System.String | pluginName | Plugin name. |
System.Guid | workingPluginId | WorkingPluginID of the plugin. |
Delete(string)
Delete the configuration file and folder for the specified plugin.
This will throw an System.IO.IOException
if the plugin did not correctly close its handles.
View Source
Declaration
public void Delete(string pluginName)
Parameters
Type | Name | Description |
---|---|---|
System.String | pluginName | The name of the plugin. |
GetDirectory(string)
Get plugin directory.
View Source
Declaration
public string GetDirectory(string pluginName)
Returns
System.String
: Plugin directory path.