From 0def49d9dca9b643064a878a6fc236f8ddac59a5 Mon Sep 17 00:00:00 2001 From: Pat Hartl Date: Tue, 22 Aug 2023 18:59:42 -0500 Subject: [PATCH] Throw error when game archive cannot be extracted --- LANCommander.Playnite.Extension/InstallController.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/LANCommander.Playnite.Extension/InstallController.cs b/LANCommander.Playnite.Extension/InstallController.cs index 10571e3..b3a9e5f 100644 --- a/LANCommander.Playnite.Extension/InstallController.cs +++ b/LANCommander.Playnite.Extension/InstallController.cs @@ -148,10 +148,12 @@ namespace LANCommander.PlaynitePlugin if (Directory.Exists(destination)) { - Logger.Trace("Directory at install path already exists. Deleting..."); + Logger.Trace("Cleaning up orphaned install files after bad install..."); Directory.Delete(destination, true); } + + throw new Exception("The game archive could not be extracted. Please try again or fix the archive!"); } }, new GlobalProgressOptions($"Downloading {game.Title}...")