Exemplo n.º 1
0
        public _name_Settings(_name_ plugin)
        {
            // Injecting your plugin instance is required for Save/Load method because Playnite saves data to a location based on what plugin requested the operation.
            this.plugin = plugin;

            // Load saved settings.
            var savedSettings = plugin.LoadPluginSettings <_name_Settings>();

            // LoadPluginSettings returns null if not saved data is available.
            if (savedSettings != null)
            {
                Option1 = savedSettings.Option1;
                Option2 = savedSettings.Option2;
            }
        }
Exemplo n.º 2
0
 public _name_Provider(MetadataRequestOptions options, _name_ plugin)
 {
     this.options = options;
     this.plugin  = plugin;
 }