mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 12:11:25 +00:00
fixed GL nodes loader for maps loaded from mounted folders.
Due to how the reader is created, READER_NEW will not work for it, it needs to force READER_CACHED.
This commit is contained in:
parent
3a5838c8f5
commit
370bec6c55
1 changed files with 2 additions and 1 deletions
|
@ -900,7 +900,8 @@ bool MapLoader::LoadGLNodes(MapData * map)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else
|
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);
|
if (result) result = DoLoadGLNodes(gwalumps);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue