UPD: Initialize OnGetApplicationName early

(cherry picked from commit 7a4ac40739)
This commit is contained in:
Alexander Koblov 2025-01-12 13:54:09 +03:00
commit 3a33650a89

View file

@ -42,8 +42,6 @@ end;
procedure LoadPaths;
begin
OnGetApplicationName := @GetAppName;
if gpCmdLineCfgDir <> EmptyStr then
begin
if GetPathType(gpCmdLineCfgDir) <> ptAbsolute then
@ -86,6 +84,7 @@ end;
procedure Initialize;
begin
gpExeFile := ParamStr(0);
OnGetApplicationName := @GetAppName;
gpExeFile := TryReadAllLinks(gpExeFile);
gpExePath := ExtractFilePath(gpExeFile);
gpGlobalCfgDir := gpExePath + 'settings' + DirectorySeparator;