DEADSOFTWARE

android: setup argc/argv
authorDeaDDooMER <deaddoomer@deadsoftware.ru>
Thu, 16 Dec 2021 15:44:43 +0000 (18:44 +0300)
committerDeaDDooMER <deaddoomer@deadsoftware.ru>
Thu, 16 Dec 2021 15:44:43 +0000 (18:44 +0300)
src/game/Doom2DF.lpr

index 53d54fc0e4d7c0d44b635c216e71c333eb779e45..245839f29254075be5797af7e03ef1ba4b44cf67 100644 (file)
@@ -204,6 +204,11 @@ var
 {$ENDIF}
   //tfo: Text;
 begin
+{$IFDEF ANDROID}
+  System.argc := argc;
+  System.argv := argv;
+{$ENDIF}
+
   SetExceptionMask([exInvalidOp, exDenormalized, exZeroDivide, exOverflow, exUnderflow, exPrecision]); //k8: fuck off, that's why
 
   f := 1;