diff --git a/src/game/Doom2DF.dpr b/src/game/Doom2DF.dpr
index 7473b43b9ebe8abaca200b344504b6007ecd2e9e..de39e510d8d65bbe3cd76f1506ed7014d2f4352a 100644 (file)
--- a/src/game/Doom2DF.dpr
+++ b/src/game/Doom2DF.dpr
else if ParamStr(f) = '--log' then conbufDumpToStdOut := true;
end;
if noct then
+ begin
Main()
+ end
else
+ begin
try
Main();
e_WriteLog('Shutdown with no errors.', MSG_NOTIFY);
else
e_WriteLog(Format(_lc[I_SYSTEM_ERROR_UNKNOWN], [NativeUInt(ExceptAddr())]), MSG_FATALERROR);
end;
+ end;
+ e_DeinitLog();
end.