From 406f32b52cce745d059911a693b99459288f4d06 Mon Sep 17 00:00:00 2001 From: Uladzimir Date: Thu, 9 Jul 2026 18:31:15 +0300 Subject: [PATCH] =?UTF-8?q?feat(platform):=20--opengl=20=D0=BC=D0=BE=D0=B6?= =?UTF-8?q?=D0=BD=D0=BE=20=D0=B2=D0=BA=D0=BB=D1=8E=D1=87=D0=B8=D1=82=D1=8C?= =?UTF-8?q?=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BC=D0=B5=D0=BD=D0=BD=D0=BE=D0=B9?= =?UTF-8?q?=20EWSDR=5FOPENGL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Бандл под LaunchServices не может передать argv, поэтому GL-режим включался через bash-обёртку в CFBundleExecutable. Теперь тот же переключатель читается из окружения, что позволяет задать его в Info.plist через LSEnvironment и обойтись без обёртки. Разбор аргументов командной строки не изменён. Co-Authored-By: Claude Opus 4.8 --- PlatformUtils.pas | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PlatformUtils.pas b/PlatformUtils.pas index 2259529..c12d962 100644 --- a/PlatformUtils.pas +++ b/PlatformUtils.pas @@ -35,6 +35,11 @@ begin if (S = '--opengl') or (S = '-opengl') or (S = '/opengl') then Exit(True); end; + // Бандл под LaunchServices не может передать argv, поэтому тот же + // переключатель читается из окружения (Info.plist -> LSEnvironment). + S := LowerCase(Trim(GetEnvironmentVariable('EWSDR_OPENGL'))); + if (S = '1') or (S = 'true') or (S = 'yes') or (S = 'on') then + Exit(True); end; function CurrentScreenDPI: Integer;