From c8c9b94f0283f1d1ad80d06ef358b72de1cdc607 Mon Sep 17 00:00:00 2001 From: DeaDDooMER Date: Mon, 21 Oct 2019 23:10:15 +0300 Subject: [PATCH] do not show message box in headless mode --- src/game/g_main.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/g_main.pas b/src/game/g_main.pas index 16085ce..9460673 100644 --- a/src/game/g_main.pas +++ b/src/game/g_main.pas @@ -367,7 +367,7 @@ begin if GameWad = '' then begin e_WriteLog('GAME.WAD not installed?', TMsgType.Fatal); - {$IFDEF USE_SDL2} + {$IF DEFINED(USE_SDL2) AND NOT DEFINED(HEADLESS)} SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, 'Doom 2D Forever', 'GAME.WAD not installed?', nil); {$ENDIF} Halt(1); -- 2.29.2