mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
UPD: Initialize OnGetApplicationName early
(cherry picked from commit 7a4ac40739)
This commit is contained in:
parent
2626a317f0
commit
3a33650a89
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue