public async void StartInstallWatcher() { watcherToken = new CancellationTokenSource(); while (true) { if (watcherToken.IsCancellationRequested) { return; } var program = AmazonGames.GetUninstallRecord(Game.GameId); if (program != null) { var installInfo = new GameInfo() { PlayAction = AmazonGamesLibrary.GetPlayAction(Game.GameId), InstallDirectory = Paths.FixSeparators(program.InstallLocation) }; OnInstalled(this, new GameInstalledEventArgs(installInfo, this, 0)); return; } await Task.Delay(2000); } }
public AmazonGameController(Game game, AmazonGamesLibrary library, IPlayniteAPI api) : base(game) { this.library = library; this.api = api; }
public AmazonGamesMetadataProvider(AmazonGamesLibrary library) { this.library = library; }