Skip to content

Commit

Permalink
Check DOOMRETRO.WAD before opening launcher
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Apr 27, 2014
1 parent 8dab3a5 commit 76393bb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/d_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,11 @@ static void D_DoomMainSetup(void)
if (!M_FileExists("doomretro.wad.temp"))
I_Error("Can't find doomretro.wad.");

if (W_CheckNumForName("BLD2A0") < 0 ||
W_CheckNumForName("MEDBA0") < 0 ||
W_CheckNumForName("STBAR2") < 0)
I_Error("Wrong version of doomretro.wad.");

if (iwadfile)
{
if (D_AddFile(iwadfile))
Expand Down Expand Up @@ -758,11 +763,6 @@ static void D_DoomMainSetup(void)
if (!W_MergeFile("doomretro.wad.temp"))
I_Error("Can't find doomretro.wad.");

if (W_CheckNumForName("BLD2A0") < 0 ||
W_CheckNumForName("MEDBA0") < 0 ||
W_CheckNumForName("STBAR2") < 0)
I_Error("Wrong version of doomretro.wad.");

p = M_CheckParmWithArgs("-file", 1);
if (p > 0)
{
Expand Down

0 comments on commit 76393bb

Please sign in to comment.