mirror of
https://github.com/crskycode/GARbro.git
synced 2025-01-11 12:39:16 +08:00
(ExtractImage): output path could contain directory name.
This commit is contained in:
parent
cdb79e2a49
commit
2e75b3e183
@ -193,7 +193,9 @@ namespace GARbro.GUI
|
||||
if (null == image)
|
||||
throw new InvalidFormatException (string.Format ("{1}: {0}", guiStrings.MsgUnableInterpret, entry.Name));
|
||||
string target_ext = target_format.Extensions.First();
|
||||
string outdir = Path.GetDirectoryName (entry.Name);
|
||||
string outname = Path.GetFileNameWithoutExtension (entry.Name)+'.'+target_ext;
|
||||
outname = Path.Combine (outdir, outname);
|
||||
Trace.WriteLine (string.Format ("{0} => {1}", entry.Name, outname), "ExtractFileFromArchive");
|
||||
using (var outfile = File.Create (outname))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user