mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
fully move default code to CalcEffectiveFileList
This commit is contained in:
parent
1ebdf891c0
commit
46d6f7e0d0
2 changed files with 2 additions and 9 deletions
|
|
@ -139,9 +139,11 @@ namespace Penumbra.Mods
|
|||
if(negivtron.Item3 != null) {
|
||||
if(settings.Conf == null) {
|
||||
settings.Conf = new();
|
||||
_plugin.ModManager.Mods.Save();
|
||||
}
|
||||
if(!settings.Conf.ContainsKey(negivtron.Item1.GroupName)) {
|
||||
settings.Conf[negivtron.Item1.GroupName] = 0;
|
||||
_plugin.ModManager.Mods.Save();
|
||||
}
|
||||
var current = settings.Conf[negivtron.Item1.GroupName];
|
||||
var flag = negivtron.Item1.Options.IndexOf(negivtron.Item2);
|
||||
|
|
|
|||
|
|
@ -601,17 +601,8 @@ namespace Penumbra.UI
|
|||
//Spahetti code time
|
||||
var mod = _plugin.SettingsInterface._selectedMod;
|
||||
var conf = mod.Conf;
|
||||
if(conf == null) {
|
||||
mod.Conf = new();
|
||||
conf = mod.Conf;
|
||||
_plugin.ModManager.Mods.Save();
|
||||
_plugin.ModManager.CalculateEffectiveFileList();
|
||||
}
|
||||
var settings = mod.Mod.Meta.Groups;
|
||||
foreach(var g in settings) {
|
||||
if(!conf.ContainsKey(g.Key)) {
|
||||
conf[g.Key] = 0;
|
||||
}
|
||||
switch(g.Value.SelectionType) {
|
||||
case SelectType.Multi:
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue