From 778dc281408ed84ec291464353fb15c8fb4be18f Mon Sep 17 00:00:00 2001 From: Kurt Date: Sat, 27 Jun 2015 08:47:06 -0700 Subject: [PATCH] Only return unique patchable files To prevent doublepatching/etc, which will cause the return string to say 'did not patch' since it already was. --- pk3DS/Subforms/Patch.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pk3DS/Subforms/Patch.cs b/pk3DS/Subforms/Patch.cs index a152a65..7807f7c 100644 --- a/pk3DS/Subforms/Patch.cs +++ b/pk3DS/Subforms/Patch.cs @@ -125,7 +125,7 @@ private string[] getGARCs() string[] garcs = new string[sc.Count]; sc.CopyTo(garcs, 0); - return garcs; + return garcs.Distinct().ToArray(); } private string[] getPaths(string[] sc) {