feat(platform): --opengl можно включить переменной EWSDR_OPENGL

Бандл под LaunchServices не может передать argv, поэтому GL-режим
включался через bash-обёртку в CFBundleExecutable. Теперь тот же
переключатель читается из окружения, что позволяет задать его в
Info.plist через LSEnvironment и обойтись без обёртки.

Разбор аргументов командной строки не изменён.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-09 18:31:15 +03:00
co-authored by Claude Opus 4.8
parent 80bab842d7
commit 406f32b52c
+5
View File
@@ -35,6 +35,11 @@ begin
if (S = '--opengl') or (S = '-opengl') or (S = '/opengl') then if (S = '--opengl') or (S = '-opengl') or (S = '/opengl') then
Exit(True); Exit(True);
end; 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; end;
function CurrentScreenDPI: Integer; function CurrentScreenDPI: Integer;