Skip to content

Commit 59c3642

Browse files
committed
Fix issue with loading some streaming meshes
1 parent 929e484 commit 59c3642

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

ContentPatcher/Data/ResourceManager.cs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -755,15 +755,11 @@ public bool TryResolveStreamingBufferFile(string streamingNativePath, string fil
755755
AttemptResolveBundleFile(ref file, streamingNativePath, streamingNativePath, streamingNativePath);
756756
return true;
757757
}
758-
foreach (var candidate in workspace.Env.FindPossibleFilepaths(streamingNativePath)) {
759-
if (openFiles.TryGetValue(candidate, out file)) {
760-
return true;
761-
}
762758

763-
file = ReadOrGetFileResource(candidate, null);
759+
if (Path.IsPathFullyQualified(filepath) && File.Exists(filepath)) {
760+
file = CreateRawStreamFileHandle(filepath, streamingNativePath, File.OpenRead(filepath), true);
764761
if (file != null) {
765-
AttemptResolveBundleFile(ref file, filepath, candidate, candidate);
766-
openFiles[candidate] = file;
762+
openFiles[filepath] = file;
767763
return true;
768764
}
769765
}

RE-Engine-Lib

0 commit comments

Comments
 (0)