Skip to content

Commit

Permalink
1.0.2 Fix Extraction - Allow overwriting existing files
Browse files Browse the repository at this point in the history
  • Loading branch information
K0lb3 committed Aug 2, 2021
1 parent 03078d4 commit 263ba81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AssetManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public static void Extract(string src, String dst, XmlElement entry)
case "zip":
using (ZipArchive z = ZipFile.OpenRead(src))
{
z.GetEntry((String)entry.GetAttribute("virtual")).ExtractToFile(dst);
z.GetEntry((String)entry.GetAttribute("virtual")).ExtractToFile(dst, true);
}
break;

Expand All @@ -131,7 +131,7 @@ public static void Extract(string src, String dst, XmlElement entry)
{
using (ZipArchive z = new ZipArchive(stream))
{
z.GetEntry((String)entry.GetAttribute("virtual")).ExtractToFile(dst);
z.GetEntry((String)entry.GetAttribute("virtual")).ExtractToFile(dst, true);
}
}
break;
Expand Down

0 comments on commit 263ba81

Please sign in to comment.