public RockstarGamesLibrarySettings(RockstarGamesLibrary 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 <RockstarGamesLibrarySettings>(); // LoadPluginSettings returns null if not saved data is available. if (savedSettings != null) { Option1 = savedSettings.Option1; Option2 = savedSettings.Option2; } }
public RockstarGamesController(RockstarGamesLibrary library, Game game) : base(game) { this.library = library; }