Commit 95e816c0 authored by SherryChaos's avatar SherryChaos

Fix the zip reading bug

support "\" as separator
parent 6d3096d6
......@@ -460,7 +460,7 @@ namespace MDPro3.Utility
continue;
foreach (var file in zip.EntryFileNames)
{
if (file.ToLower() == targetPNG || file.ToLower() == targetJPG)
if (file.ToLower().Replace("\\", "/") == targetPNG || file.ToLower().Replace("\\", "/") == targetJPG)
{
stream = new();
var entry = zip[file];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment