Skip to content

Commit

Permalink
fixed GL nodes loader for maps loaded from mounted folders.
Browse files Browse the repository at this point in the history
Due to how the reader  is created, READER_NEW will not work for it, it needs to force READER_CACHED.
  • Loading branch information
coelckers committed May 1, 2024
1 parent 3a5838c commit 370bec6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/maploader/glnodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,8 @@ bool MapLoader::LoadGLNodes(MapData * map)
break;
}
else
gwalumps[i] = f_gwa->GetEntryReader(li + i + 1, FileSys::READER_NEW, FileSys::READERFLAG_SEEKABLE);
// This is a special case. The container for the map WAD is not set up to create new file handles for itself so this needs to cache the content here.
gwalumps[i] = f_gwa->GetEntryReader(li + i + 1, FileSys::READER_CACHED, FileSys::READERFLAG_SEEKABLE);
}
if (result) result = DoLoadGLNodes(gwalumps);
}
Expand Down

0 comments on commit 370bec6

Please sign in to comment.