This commit is contained in:
James R 2021-02-27 03:09:45 -08:00
parent 1ce3a7dd56
commit 6cb0e9667d
2 changed files with 9 additions and 2 deletions

View file

@ -1070,7 +1070,7 @@ static void IdentifyVersion(void)
#define MUSICTEST(str) \
{\
const char *musicpath = va(pandf,srb2waddir,str);\
int ms = W_VerifyNMUSlumps(musicpath); \
int ms = W_VerifyNMUSlumps(musicpath, false); \
if (ms == 1) \
D_AddFile(startupiwads, musicpath); \
else if (ms == 0) \

View file

@ -747,7 +747,14 @@ UINT16 W_InitFile(const char *filename, boolean mainfile, boolean startup)
if ((handle = W_OpenWadFile(&filename, true)) == NULL)
return W_InitFileError(filename, startup);
important = !W_VerifyNMUSlumps(filename);
important = W_VerifyNMUSlumps(filename, startup);
if (important == -1)
{
fclose(handle);
return INT16_MAX;
}
#ifndef NOMD5
//