mirror of
https://github.com/crskycode/GARbro.git
synced 2025-01-11 12:39:16 +08:00
(ExtractItemExec): "visit" extracted archive by means of VFS.ChDir()
This commit is contained in:
parent
5dcbcd76c9
commit
7a8608475e
@ -65,13 +65,15 @@ namespace GARbro.GUI
|
|||||||
if (!entry.IsDirectory)
|
if (!entry.IsDirectory)
|
||||||
{
|
{
|
||||||
var arc_dir = vm.Path.First();
|
var arc_dir = vm.Path.First();
|
||||||
var source = Path.Combine (arc_dir, entry.Name);
|
var source = entry.Source.Name;
|
||||||
if (string.IsNullOrEmpty (destination))
|
if (string.IsNullOrEmpty (destination))
|
||||||
destination = arc_dir;
|
destination = arc_dir;
|
||||||
|
SetBusyState();
|
||||||
|
VFS.ChDir (source);
|
||||||
// extract into directory named after archive
|
// extract into directory named after archive
|
||||||
if (!string.IsNullOrEmpty (Path.GetExtension (entry.Name)))
|
if (!string.IsNullOrEmpty (Path.GetExtension (entry.Name)))
|
||||||
destination = Path.GetFileNameWithoutExtension (source);
|
destination = Path.GetFileNameWithoutExtension (source);
|
||||||
extractor = new GarExtract (this, source);
|
extractor = new GarExtract (this, source, VFS.CurrentArchive);
|
||||||
extractor.ExtractAll (destination);
|
extractor.ExtractAll (destination);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user