Make saving files and recalculating effective files threaded/once per frame.

This commit is contained in:
Ottermandias 2022-05-12 17:33:54 +02:00
parent b8210e094b
commit 67de0ccf45
14 changed files with 147 additions and 42 deletions

View file

@ -72,7 +72,7 @@ public partial class Mod
Priority = priority,
};
group.PrioritizedOptions.AddRange( subMods.OfType< SubMod >().Select( ( s, idx ) => ( s, idx ) ) );
IModGroup.SaveModGroup( group, baseFolder, index );
IModGroup.Save( group, baseFolder, index );
break;
}
case SelectType.Single:
@ -84,7 +84,7 @@ public partial class Mod
Priority = priority,
};
group.OptionData.AddRange( subMods.OfType< SubMod >() );
IModGroup.SaveModGroup( group, baseFolder, index );
IModGroup.Save( group, baseFolder, index );
break;
}
}