DEADSOFTWARE

cosmetix: `curTime*` -> `getTime*`
[d2df-sdl.git] / src / game / Doom2DF.dpr
index 806032dce301e929dcaf969d2d07692292aef34a..97fdb669e7c5d52616e69030f7924fada08cd8be 100644 (file)
@@ -40,6 +40,7 @@ program Doom2DF;
 
 uses
   conbuf in '../shared/conbuf.pas',
+  math,
   GL,
   GLExt,
   SDL2 in '../lib/sdl2/sdl2.pas',
@@ -118,8 +119,9 @@ uses
 var
   f: Integer;
   noct: Boolean = false;
-  tfo: Text;
+  //tfo: Text;
 begin
+  SetExceptionMask([exInvalidOp, exDenormalized, exZeroDivide, exOverflow, exUnderflow, exPrecision]); //k8: fuck off, that's why
   for f := 1 to ParamCount do
   begin
          if ParamStr(f) = '--gdb' then noct := true
@@ -140,11 +142,13 @@ begin
         begin
           e_WriteStackTrace(e.message);
           //e_WriteLog(Format(_lc[I_SYSTEM_ERROR_MSG], [E.Message]), MSG_FATALERROR);
+          (*
           AssignFile(tfo, GameDir+'/trace.log');
           {$I-}
           Append(tfo);
           if (IOResult <> 0) then Rewrite(tfo);
           if (IOResult = 0) then begin writeln(tfo, '====================='); DumpExceptionBackTrace(tfo); CloseFile(tfo); end;
+          *)
         end
       else
         begin