mirror of
https://github.com/crskycode/GARbro.git
synced 2024-10-23 15:48:16 +08:00
(GarExtract): fixed overwrite dialog for regular entry.
This commit is contained in:
parent
aedd41fde4
commit
5e74d88ee6
@ -291,7 +291,7 @@ namespace GARbro.GUI
|
||||
else if (m_convert_audio && entry.Type == "audio")
|
||||
ExtractAudio (arc, entry);
|
||||
else
|
||||
arc.Extract (entry);
|
||||
ExtractEntryAsIs (arc, entry);
|
||||
++m_extract_count;
|
||||
}
|
||||
catch (SkipExistingFileException)
|
||||
@ -318,6 +318,13 @@ namespace GARbro.GUI
|
||||
}
|
||||
}
|
||||
|
||||
void ExtractEntryAsIs (ArcFile arc, Entry entry)
|
||||
{
|
||||
using (var input = arc.OpenEntry (entry))
|
||||
using (var output = CreateNewFile (entry.Name))
|
||||
input.CopyTo (output);
|
||||
}
|
||||
|
||||
void ExtractImage (ArcFile arc, Entry entry, ImageFormat target_format)
|
||||
{
|
||||
using (var decoder = arc.OpenImage (entry))
|
||||
|
Loading…
Reference in New Issue
Block a user