mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 03:44:13 +08:00
(ExtractImage): use ArchiveFormat.CreateFile static method.
This commit is contained in:
parent
14ef2f9071
commit
b7051be2cb
@ -332,7 +332,7 @@ namespace GARbro.GUI
|
||||
string target_ext = target_format.Extensions.First();
|
||||
string outname = Path.ChangeExtension (entry.Name, target_ext);
|
||||
Trace.WriteLine (string.Format ("{0} => {1}", entry.Name, outname), "ExtractImage");
|
||||
using (var outfile = arc.CreateFile (new Entry { Name = outname }))
|
||||
using (var outfile = ArchiveFormat.CreateFile (outname))
|
||||
{
|
||||
target_format.Write (outfile, image);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user