/// <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> /// Asynchronously saves the user configuration for the mod. /// </summary> public async Task SaveAsync() => await _pathTuple.SaveAsync();