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
parent d0a2713820
commit f1db369883
6 changed files with 6 additions and 8 deletions

View file

@ -87,9 +87,6 @@ xx(SoundSlot5)
xx(SoundSlot6)
xx(SoundSlot7)
// Actor properties
xx(BobPivot3D)
xx(LevelLocals)
xx(Level)

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

View file

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

View file

@ -54,5 +54,3 @@ EXTERN_CVAR(Int, gl_shadowmap_filter)
EXTERN_CVAR(Bool, gl_brightfog)
EXTERN_CVAR(Bool, gl_lightadditivesurfaces)
EXTERN_CVAR(Bool, gl_notexturefill)
EXTERN_CVAR(Bool, r_drawplayersprites)

View file

@ -90,7 +90,7 @@ bool D_AddFile(std::vector<std::string>& wadfiles, const char* file, bool check,
closedir(d);
if (!found)
{
Printf("Can't find file '%s' in '%s'\n", filename.GetChars(), basepath.GetChars());
//Printf("Can't find file '%s' in '%s'\n", filename.GetChars(), basepath.GetChars());
return false;
}
}

View file

@ -12,6 +12,9 @@ xx(BloodSplatter)
xx(AxeBlood)
xx(Spray)
// Actor properties
xx(BobPivot3D)
// Invulnerability types
xx(Ghost)
xx(Reflective)