mirror of https://gitlab.com/basile.b/dexed.git
check for other ddemangle name, close #165
This commit is contained in:
parent
22a7ddefe7
commit
40d196533b
|
@ -43,6 +43,20 @@ begin
|
||||||
fList := TStringList.Create;
|
fList := TStringList.Create;
|
||||||
fOut := TStringList.Create;
|
fOut := TStringList.Create;
|
||||||
fProc := TCEProcess.create(nil);
|
fProc := TCEProcess.create(nil);
|
||||||
|
fProc.Options:= [poUsePipes];
|
||||||
|
fProc.OnTerminate:=@procTerminate;
|
||||||
|
fProc.ShowWindow:= swoHIDE;
|
||||||
|
|
||||||
|
// Arch Linux users can have the tool setup w/o DMD
|
||||||
|
{$IFDEF POSIX}
|
||||||
|
fProc.Executable := exeFullName('dtools-ddemangle');
|
||||||
|
if fProc.Executable.fileExists then
|
||||||
|
begin
|
||||||
|
fProc.execute;
|
||||||
|
fActive := true;
|
||||||
|
exit;
|
||||||
|
end;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
// up to version 2.071 ddemangle cannot be daemon-ized
|
// up to version 2.071 ddemangle cannot be daemon-ized
|
||||||
with TProcess.Create(nil) do
|
with TProcess.Create(nil) do
|
||||||
|
@ -68,9 +82,6 @@ begin
|
||||||
fProc.Executable := exeFullName('ddemangle' + exeExt);
|
fProc.Executable := exeFullName('ddemangle' + exeExt);
|
||||||
if (v >= 72) and fProc.Executable.fileExists then
|
if (v >= 72) and fProc.Executable.fileExists then
|
||||||
begin
|
begin
|
||||||
fProc.Options:= [poUsePipes];
|
|
||||||
fProc.OnTerminate:=@procTerminate;
|
|
||||||
fProc.ShowWindow:= swoHIDE;
|
|
||||||
fProc.execute;
|
fProc.execute;
|
||||||
fActive := true;
|
fActive := true;
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue