mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-22 04:01:13 +00:00
disable the buffering file reader.
This was definitely crashing on Death Wish's E1 movie and probably caused other problems as well.
This commit is contained in:
parent
3299e0b8c0
commit
436f24add5
3 changed files with 3 additions and 3 deletions
|
@ -564,7 +564,7 @@ void Widget::OnWindowMouseMove(const Point& pos)
|
|||
{
|
||||
widget->OnMouseMove(widget->MapFrom(this, pos));
|
||||
widget = widget->Parent();
|
||||
} while (widget != this);
|
||||
} while (widget != this && widget != nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -980,7 +980,7 @@ bool OpenDecompressor(FileReader& self, FileReader &parent, FileReader::Size len
|
|||
}
|
||||
dec->Length = length;
|
||||
}
|
||||
if ((flags & DCF_CACHED))
|
||||
if ((flags & (DCF_CACHED| DCF_SEEKABLE))) // the buffering reader does not seem to be stable, so cache it instead until we find out what's wrong.
|
||||
{
|
||||
// read everything into a MemoryArrayReader.
|
||||
FileData data(nullptr, length);
|
||||
|
|
|
@ -395,7 +395,7 @@ void FileSystem::AddFile (const char *filename, FileReader *filer, LumpFilterInf
|
|||
std::string path = filename;
|
||||
path += ':';
|
||||
path += resfile->getName(i);
|
||||
auto embedded = resfile->GetEntryReader(i, READER_NEW, READERFLAG_SEEKABLE);
|
||||
auto embedded = resfile->GetEntryReader(i, READER_CACHED);
|
||||
AddFile(path.c_str(), &embedded, filter, Printf, hashfile);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue