mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-25 13:31:37 +00:00
do not open resource files from non-open file readers.
This commit is contained in:
parent
6e7148b074
commit
c0bd024094
1 changed files with 1 additions and 0 deletions
|
@ -162,6 +162,7 @@ static int nulPrintf(FSMessageLevel msg, const char* fmt, ...)
|
|||
|
||||
FResourceFile *FResourceFile::DoOpenResourceFile(const char *filename, FileReader &file, bool containeronly, LumpFilterInfo* filter, FileSystemMessageFunc Printf, StringPool* sp)
|
||||
{
|
||||
if (!file.isOpen()) return nullptr;
|
||||
if (Printf == nullptr) Printf = nulPrintf;
|
||||
for(auto func : funcs)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue