Throw error when game archive cannot be extracted

dhcp-server
Pat Hartl 2023-08-22 18:59:42 -05:00
parent 537ad49a5a
commit 0def49d9dc
1 changed files with 3 additions and 1 deletions

View File

@ -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}...")