From 7a8608475e3ad8d380ed2c757bb5016bdbd81577 Mon Sep 17 00:00:00 2001 From: morkt Date: Wed, 2 Sep 2015 02:59:25 +0400 Subject: [PATCH] (ExtractItemExec): "visit" extracted archive by means of VFS.ChDir() --- GarExtract.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/GarExtract.cs b/GarExtract.cs index 55fb9be1..94f6d405 100644 --- a/GarExtract.cs +++ b/GarExtract.cs @@ -65,13 +65,15 @@ namespace GARbro.GUI if (!entry.IsDirectory) { var arc_dir = vm.Path.First(); - var source = Path.Combine (arc_dir, entry.Name); + var source = entry.Source.Name; if (string.IsNullOrEmpty (destination)) destination = arc_dir; + SetBusyState(); + VFS.ChDir (source); // extract into directory named after archive if (!string.IsNullOrEmpty (Path.GetExtension (entry.Name))) destination = Path.GetFileNameWithoutExtension (source); - extractor = new GarExtract (this, source); + extractor = new GarExtract (this, source, VFS.CurrentArchive); extractor.ExtractAll (destination); } }