Exemplo n.º 1
0
        public static void SetGenericModDependancies(this IniFileSection section, string key, [CanBeNull] IEnumerable <string> values)
        {
            var v = values?.OrderBy(x => x).Select(x => $"\"{x}\"").JoinToString();

            if (string.IsNullOrWhiteSpace(v))
            {
                section.Remove(key);
            }
            else
            {
                section.Set(key, v);
            }
        }
Exemplo n.º 2
0
            public void Set(IniFileSection section)
            {
                if (Preset.HasValue)
                {
                    section.Set("PRESET", Preset);
                }
                else
                {
                    section.Remove("PRESET");
                }

                section.Set("SESSION_START", SessionStart);
                section.Set("RANDOMNESS", Randomness);
                section.Set("LAP_GAIN", LapGain);
                section.Set("SESSION_TRANSFER", SessionTransfer);
            }