From 7d0cc6609075398546183e25318248dc2aea04e4 Mon Sep 17 00:00:00 2001 From: h1531095 Date: Thu, 5 Jan 2023 15:19:52 +0800 Subject: [PATCH] Bug: path not resolved before file check --- ArcFormats/Emote/ImageDREF.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ArcFormats/Emote/ImageDREF.cs b/ArcFormats/Emote/ImageDREF.cs index c2c7087e..595072b8 100644 --- a/ArcFormats/Emote/ImageDREF.cs +++ b/ArcFormats/Emote/ImageDREF.cs @@ -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)