This commit is contained in:
CroakFang
2023-02-14 05:05:42 +08:00
parent 92038d87ec
commit a7f4f8b326
5 changed files with 28 additions and 18 deletions
+10 -2
View File
@@ -199,9 +199,17 @@ public class ManifestDB
}
callback?.Invoke($"Decompress master.mdb");
var masterPath = $"{Path.GetDirectoryName(DBPath)}/master/master.mdb";
var masterPath = $"{Path.GetDirectoryName(DBPath)}/master/master_umaviewer.mdb";
Directory.CreateDirectory(Path.GetDirectoryName(masterPath));
File.WriteAllBytes(masterPath, LZ4Util.DecompressFromFile(path));
try
{
File.WriteAllBytes(masterPath, LZ4Util.DecompressFromFile(path));
}
catch
{
callback?.Invoke($"Decompress master.mdb error");
yield break;
}
}
}