(GarExtract): fixed overwrite dialog for regular entry.

This commit is contained in:
morkt 2017-02-03 23:43:38 +04:00
parent aedd41fde4
commit 5e74d88ee6

View File

@ -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))