Skip to content

Commit

Permalink
DOOM: Panic if no iwad is present
Browse files Browse the repository at this point in the history
  • Loading branch information
ducalex committed Feb 12, 2024
1 parent 9bdf9f6 commit 7ec845b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions prboom-go/main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,9 @@ void app_main()
if (!iwad)
iwad = rg_gui_file_picker("Select WAD file", I_DoomExeDir(), is_iwad, false);

if (!iwad)
RG_PANIC("DOOM requires an IWAD file!");

if (pwad)
{
myargv = (const char *[]){"doom", "-save", save, "-iwad", iwad, "-file", pwad};
Expand Down

0 comments on commit 7ec845b

Please sign in to comment.