mirror of
https://git.vladimir.cc/vladimir/ewsdr.git
synced 2026-08-25 20:37:33 +00:00
fix(dmr): recover handheld voice sync
This commit is contained in:
+10
-1
@@ -71,7 +71,7 @@ const
|
||||
{$ENDIF}
|
||||
var
|
||||
i: Integer;
|
||||
LocalName: string;
|
||||
LocalName, BuildName: string;
|
||||
begin
|
||||
if GLib <> dynlibs.NilHandle then Exit(True);
|
||||
GLastError := '';
|
||||
@@ -79,6 +79,15 @@ begin
|
||||
begin
|
||||
LocalName := ExtractFilePath(ParamStr(0)) + Names[i];
|
||||
GLib := LoadLibrary(LocalName);
|
||||
// Lazarus debug binaries live in bin/<target>/ while the documented
|
||||
// optional adapter build lives in build/dmr. Make an in-tree build
|
||||
// immediately usable without a system-wide cmake --install.
|
||||
if GLib = dynlibs.NilHandle then
|
||||
begin
|
||||
BuildName := ExpandFileName(ExtractFilePath(ParamStr(0)) +
|
||||
'../../build/dmr/' + Names[i]);
|
||||
GLib := LoadLibrary(BuildName);
|
||||
end;
|
||||
if GLib = dynlibs.NilHandle then GLib := LoadLibrary(Names[i]);
|
||||
if GLib <> dynlibs.NilHandle then Break;
|
||||
end;
|
||||
|
||||
Reference in New Issue
Block a user