mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
Revert "UPD: Initialize OnGetApplicationName early"
This reverts commit 3a33650a89.
This commit is contained in:
parent
4a0bcd0fa1
commit
6baafba866
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue