- Blood: don't abort the INI scanner if it finds a file with resource file index 0.

0 is also used for on-the-fly addition of data to the file system, so this must run through the entire directory to be safe.
This commit is contained in:
Christoph Oelckers 2021-08-24 18:39:54 +02:00
parent d5a4a17ced
commit c288de920d

View file

@ -120,7 +120,7 @@ static const char* DefFile(void)
for (int i = numlumps - 1; i >= 0; i--) for (int i = numlumps - 1; i >= 0; i--)
{ {
int fileno = fileSystem.GetFileContainer(i); int fileno = fileSystem.GetFileContainer(i);
if (fileno != -1 && fileno <= fileSystem.GetMaxIwadNum()) break; if (fileno != -1 && fileno <= fileSystem.GetMaxIwadNum()) continue;
FString fn = fileSystem.GetFileFullName(i, false); FString fn = fileSystem.GetFileFullName(i, false);
FString ext = fn.Right(4); FString ext = fn.Right(4);
if (ext.CompareNoCase(".ini") == 0) if (ext.CompareNoCase(".ini") == 0)