mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Make meta hooks respect Enable Mod setting and fix EQP composition.
This commit is contained in:
parent
a90e253c73
commit
29f8c91306
12 changed files with 121 additions and 33 deletions
|
|
@ -31,7 +31,21 @@ public class Configuration : IPluginConfiguration, ISavable, IService
|
|||
|
||||
public ChangeLogDisplayType ChangeLogDisplayType { get; set; } = ChangeLogDisplayType.New;
|
||||
|
||||
public bool EnableMods { get; set; } = true;
|
||||
public event Action<bool>? ModsEnabled;
|
||||
|
||||
[JsonIgnore]
|
||||
private bool _enableMods = true;
|
||||
|
||||
public bool EnableMods
|
||||
{
|
||||
get => _enableMods;
|
||||
set
|
||||
{
|
||||
_enableMods = value;
|
||||
ModsEnabled?.Invoke(value);
|
||||
}
|
||||
}
|
||||
|
||||
public string ModDirectory { get; set; } = string.Empty;
|
||||
public string ExportDirectory { get; set; } = string.Empty;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue