perf: edit arc

This commit is contained in:
ManicSteiner
2023-12-07 21:42:38 +08:00
parent dad693ca9e
commit 6efe8ad30b
2 changed files with 4 additions and 0 deletions

View File

@@ -22,12 +22,14 @@ namespace GameRes.Formats.MAGES
{
string filepath = Path.GetDirectoryName(filedata.Name);
filepath = Path.Combine(filepath, "list.bin");
if (! File.Exists(filepath)) return null;
filelist = new ArcView(filepath);
}
else if (filedata.Name.EndsWith("list.bin"))
{
string filepath = Path.GetDirectoryName(filedata.Name);
filepath = Path.Combine(filepath, "data.bin");
if (!File.Exists(filepath)) return null;
filelist = new ArcView(filepath);
return TryOpen(filelist);
}