From: DeaDDooMER Date: Mon, 21 Oct 2019 20:10:15 +0000 (+0300) Subject: do not show message box in headless mode X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=c8c9b94f0283f1d1ad80d06ef358b72de1cdc607;p=d2df-sdl.git do not show message box in headless mode --- 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);