Skip to content

Commit

Permalink
Added JWAD recognition
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Aug 17, 2003
1 parent fd7490e commit eb20634
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion doomsday/Src/dd_wad.c
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,13 @@ boolean W_AddFile(const char *filename, boolean allowDuplicate)
{
// WAD file.
F_Read(&header, sizeof(header), handle);
if(strncmp(header.identification, "IWAD", 4))
if(!strncmp(header.identification, "JWAD", 4))
{
// This is treated like an IWAD, but we won't set the
// iwadLoaded flag.
rec->iwad = true;
}
else if(strncmp(header.identification, "IWAD", 4))
{
if(strncmp(header.identification, "PWAD", 4))
{ // Bad file id
Expand Down

0 comments on commit eb20634

Please sign in to comment.