/// <summary> /// Saves a given mod tuple to the hard disk. /// </summary> public void SaveMod(PathTuple <ModConfig>?oldModTuple) { if (oldModTuple == null) { return; } oldModTuple.Config.SupportedAppId = EnabledAppIds.Where(x => x.Enabled).Select(x => x.Generic.AppId).ToArray(); oldModTuple.SaveAsync(); }
/// <summary> /// Saves a given mod tuple to the hard disk. /// </summary> public void SaveMod(ImageModPathTuple oldModTuple) { if (oldModTuple == null) { return; } if (EnabledAppIds != null) { oldModTuple.ModConfig.SupportedAppId = EnabledAppIds.Where(x => x.Enabled).Select(x => x.Generic.AppId).ToArray(); } oldModTuple.Save(); }