From 202edd424bf329a700166f21c49ce3328f07585d Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Mon, 23 Dec 2024 11:43:33 +0000 Subject: [PATCH] Fix extraction issue --- project/code/LGS/ResourcePathManager.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/project/code/LGS/ResourcePathManager.cs b/project/code/LGS/ResourcePathManager.cs index d0657f7..3b55c22 100644 --- a/project/code/LGS/ResourcePathManager.cs +++ b/project/code/LGS/ResourcePathManager.cs @@ -180,6 +180,10 @@ public class ResourcePathManager // Do the extraction bro // The path order is a priority order, so we don't want to overwrite any files when extracting // TODO: Check if there's any problems caused by case sensitivity + if (Directory.Exists(_extractionPath)) + { + Directory.Delete(_extractionPath, true); + } foreach (var zipPath in zipPaths) { var resType = Path.GetFileNameWithoutExtension(zipPath);