moved a few things out of the common code that should be defined privately.

This commit is contained in:
Christoph Oelckers 2024-02-04 13:54:25 +01:00
commit f1db369883
6 changed files with 6 additions and 8 deletions

View file

@ -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);