示例#1
0
    /// <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();
    }
示例#2
0
        /// <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();
        }