private void WriteOptions(string category, AutoexecLuaContext context)
        {
            var options = _profileSettingsService.GetAdvancedOptions(category);

            foreach (var option in options)
            {
                if (_profileSettingsService.TryGetValue <object>(ProfileSettingsCategories.AdvancedOptions, option.Id, out var value))
                {
                    context.SetValue(option.Id, value);
                    context.Save(option.Id);
                }
            }
        }
        public Option[] GetAdvancedOptions(string optionsCategory)
        {
            var options = _profileSettingsService.GetAdvancedOptions(optionsCategory);

            foreach (var option in options)
            {
                if (_profileSettingsService.TryGetValue <object>(ProfileSettingsCategories.AdvancedOptions, option.Id, out var value))
                {
                    option.Value = value;
                }
            }

            return(options);
        }