mirror of
https://git.vladimir.cc/vladimir/ewsdr.git
synced 2026-08-25 17:27:32 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user