Revert "UPD: Initialize OnGetApplicationName early"

This reverts commit 3a33650a89.
This commit is contained in:
Alexander Koblov 2025-01-18 23:01:52 +03:00
commit 6baafba866

View file

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