mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(GarExtract): fixed overwrite dialog for regular entry.
This commit is contained in:
@@ -291,7 +291,7 @@ namespace GARbro.GUI
|
|||||||
else if (m_convert_audio && entry.Type == "audio")
|
else if (m_convert_audio && entry.Type == "audio")
|
||||||
ExtractAudio (arc, entry);
|
ExtractAudio (arc, entry);
|
||||||
else
|
else
|
||||||
arc.Extract (entry);
|
ExtractEntryAsIs (arc, entry);
|
||||||
++m_extract_count;
|
++m_extract_count;
|
||||||
}
|
}
|
||||||
catch (SkipExistingFileException)
|
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)
|
void ExtractImage (ArcFile arc, Entry entry, ImageFormat target_format)
|
||||||
{
|
{
|
||||||
using (var decoder = arc.OpenImage (entry))
|
using (var decoder = arc.OpenImage (entry))
|
||||||
|
|||||||
Reference in New Issue
Block a user