X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Fgame%2FDoom2DF.dpr;h=679615611ed466084ac3c576607f7c0ca86251c5;hp=df5de459a118d12c5b4c42ec287d16b5ad0adb22;hb=45af139bfc7713ed4eb237ac1f5288e82706564c;hpb=70c6ae06da3e766e0303dca258b0b3f6e56a2dea diff --git a/src/game/Doom2DF.dpr b/src/game/Doom2DF.dpr index df5de45..6796156 100644 --- a/src/game/Doom2DF.dpr +++ b/src/game/Doom2DF.dpr @@ -95,14 +95,21 @@ uses {$R CustomRes.res} {$ENDIF} +var + f: Integer; + noct: Boolean = false; begin - try - Main(); - e_WriteLog('Shutdown with no errors.', MSG_NOTIFY); - except - on E: Exception do - e_WriteLog(Format(_lc[I_SYSTEM_ERROR_MSG], [E.Message]), MSG_FATALERROR); - else - e_WriteLog(Format(_lc[I_SYSTEM_ERROR_UNKNOWN], [LongWord(ExceptAddr())]), MSG_FATALERROR); - end; + for f := 1 to ParamCount do if ParamStr(f) = '--gdb' then noct := true; + if noct then + Main() + else + try + Main(); + e_WriteLog('Shutdown with no errors.', MSG_NOTIFY); + except + on E: Exception do + e_WriteLog(Format(_lc[I_SYSTEM_ERROR_MSG], [E.Message]), MSG_FATALERROR); + else + e_WriteLog(Format(_lc[I_SYSTEM_ERROR_UNKNOWN], [LongWord(ExceptAddr())]), MSG_FATALERROR); + end; end.