Skip to content

Commit

Permalink
Wrap: Cache only static resolutions
Browse files Browse the repository at this point in the history
Skip files resolved via Conditionals in mods
  • Loading branch information
julianxhokaxhiu committed Jun 18, 2022
1 parent f88c8c0 commit 3e159f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 7thWrapperLib/Wrap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,9 @@ private IntPtr HCreateFileW(
{
DebugLogger.WriteLine($"Remapping {lpFileName} to {mapped.File} [ Matched: '{match}' ]");

mappedFilesCache[lpFileName] = mapped;
// Cache only static resolutions
if (mapped.CFolder == null)
mappedFilesCache[lpFileName] = mapped;

if (mapped.Archive == null)
lpFileName = mapped.File;
Expand Down

0 comments on commit 3e159f2

Please sign in to comment.