mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-03 01:13:22 +00:00
- fixed: When reopening a lump, the full file name must be used.
This commit is contained in:
parent
666b6b7007
commit
58bc12ee19
1 changed files with 1 additions and 1 deletions
|
@ -1386,7 +1386,7 @@ FileReader FileSystem::ReopenFileReader(int lump, bool alwayscache)
|
||||||
if (rl->RefCount == 0 && rd != nullptr && !rd->GetBuffer() && !alwayscache && !(rl->Flags & LUMPF_COMPRESSED))
|
if (rl->RefCount == 0 && rd != nullptr && !rd->GetBuffer() && !alwayscache && !(rl->Flags & LUMPF_COMPRESSED))
|
||||||
{
|
{
|
||||||
int fileno = fileSystem.GetFileContainer(lump);
|
int fileno = fileSystem.GetFileContainer(lump);
|
||||||
const char *filename = fileSystem.GetResourceFileName(fileno);
|
const char *filename = fileSystem.GetResourceFileFullName(fileno);
|
||||||
FileReader fr;
|
FileReader fr;
|
||||||
if (fr.OpenFile(filename, rl->GetFileOffset(), rl->LumpSize))
|
if (fr.OpenFile(filename, rl->GetFileOffset(), rl->LumpSize))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue