Merge pull request #7 from h1531095/master

Bug: path not resolved before file check
This commit is contained in:
Crsky 2023-01-08 18:28:39 +08:00 committed by GitHub
commit 7e4f35163d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,10 +73,9 @@ namespace GameRes.Formats.Emote
var match = PathRe.Match (line);
if (!match.Success)
return null;
var pak_name = match.Groups[1].Value;
var pak_name = VFS.CombinePath (dir, match.Groups[1].Value);
if (!VFS.FileExists (pak_name))
return null;
pak_name = VFS.CombinePath (dir, pak_name);
layers.Add (Tuple.Create (pak_name, match.Groups[2].Value));
}
if (0 == layers.Count)