Skip to content

Commit

Permalink
GameLauncher: Delete the 7thWorkshop only if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
julianxhokaxhiu committed Dec 4, 2022
1 parent a7637cf commit 22ea424
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion SeventhHeavenUI/Classes/GameLauncher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,9 @@ private static void Delete7thWrapperDlls()
{
string dest = Path.GetDirectoryName(Sys.Settings.FF7Exe);

Directory.Delete(Path.Combine(dest, "7thWorkshop"), true);
string workshopDir = Path.Combine(dest, "7thWorkshop");
if (Directory.Exists(workshopDir)) Directory.Delete(workshopDir, true);

File.Delete(Path.Combine(dest, "7thWrapperProxy.runtimeconfig.json"));
File.Delete(Path.Combine(dest, "7thWrapperProxy.dll"));
File.Delete(Path.Combine(dest, "SharpCompress.dll"));
Expand Down

0 comments on commit 22ea424

Please sign in to comment.