From 3c412f0a0fce5870ad1434f6d8e34ea568dbb341 Mon Sep 17 00:00:00 2001 From: Kurt Date: Sun, 10 Jun 2018 10:55:49 -0700 Subject: [PATCH] reattach progressbar & label Closes #345 --- pk3DS/GarcUtil.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pk3DS/GarcUtil.cs b/pk3DS/GarcUtil.cs index 7ced976..d6f61ff 100644 --- a/pk3DS/GarcUtil.cs +++ b/pk3DS/GarcUtil.cs @@ -51,10 +51,12 @@ private static void GARC_UnpackProgressed(object sender, GARC.UnpackProgressedEv public static bool garcPackMS(string folderPath, string garcPath, int version, int bytesPadding, ProgressBar pBar1 = null, Label label = null, bool supress = false) { + GarcUtil.pBar1 = pBar1; + GarcUtil.label = label; GARC.FileCountDetermined += GARC_FileCountDetermined; GARC.PackProgressed += GARC_PackProgressed; try - { + { var filectr = GARC.garcPackMS(folderPath, garcPath, version, bytesPadding); if (filectr > 0) { @@ -90,6 +92,8 @@ public static bool garcPackMS(string folderPath, string garcPath, int version, i public static bool garcUnpack(string garcPath, string outPath, bool skipDecompression, ProgressBar pBar1 = null, Label label = null, bool supress = false, bool bypassExt = false) { + GarcUtil.pBar1 = pBar1; + GarcUtil.label = label; GARC.FileCountDetermined += GARC_FileCountDetermined; GARC.UnpackProgressed += GARC_UnpackProgressed; try