|
@@ -3,7 +3,7 @@
|
|
-------------------------------------------------------------------------
|
|
-------------------------------------------------------------------------
|
|
Some useful functions to work with plugins
|
|
Some useful functions to work with plugins
|
|
|
|
|
|
- Copyright (C) 2011-2018 Alexander Koblov ([email protected])
|
|
|
|
|
|
+ Copyright (C) 2011-2021 Alexander Koblov ([email protected])
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
it under the terms of the GNU General Public License as published by
|
|
@@ -300,7 +300,7 @@ begin
|
|
|
|
|
|
if gWdxPlugins.IndexOfName('audioinfo') < 0 then
|
|
if gWdxPlugins.IndexOfName('audioinfo') < 0 then
|
|
begin
|
|
begin
|
|
- gWdxPlugins.Add(GetCmdDirFromEnvVar(Folder) + 'audioinfo' + PathDelim + 'audioinfo.wdx');
|
|
|
|
|
|
+ gWdxPlugins.Add(Folder + 'audioinfo' + PathDelim + 'audioinfo.wdx');
|
|
end;
|
|
end;
|
|
|
|
|
|
// Wfx plugins
|
|
// Wfx plugins
|
|
@@ -318,16 +318,26 @@ begin
|
|
end;
|
|
end;
|
|
{$ENDIF}
|
|
{$ENDIF}
|
|
|
|
|
|
- {$IF DEFINED(LINUX)}
|
|
|
|
|
|
+ {$IF DEFINED(LINUX) or DEFINED(MSWINDOWS)}
|
|
// Wlx plugins
|
|
// Wlx plugins
|
|
Folder:= '%commander_path%' + PathDelim + 'plugins' + PathDelim + 'wlx' + PathDelim;
|
|
Folder:= '%commander_path%' + PathDelim + 'plugins' + PathDelim + 'wlx' + PathDelim;
|
|
|
|
|
|
|
|
+ {$IF DEFINED(LINUX)}
|
|
I:= gWlxPlugins.IndexOfName('wlxMplayer');
|
|
I:= gWlxPlugins.IndexOfName('wlxMplayer');
|
|
if I >= 0 then
|
|
if I >= 0 then
|
|
begin
|
|
begin
|
|
gWlxPlugins.GetWlxModule(I).FileName:= Folder + 'wlxmplayer' + PathDelim + 'wlxmplayer.wlx';
|
|
gWlxPlugins.GetWlxModule(I).FileName:= Folder + 'wlxmplayer' + PathDelim + 'wlxmplayer.wlx';
|
|
end;
|
|
end;
|
|
{$ENDIF}
|
|
{$ENDIF}
|
|
|
|
+
|
|
|
|
+ {$IF DEFINED(MSWINDOWS)}
|
|
|
|
+ if gWlxPlugins.IndexOfName('preview') < 0 then
|
|
|
|
+ begin
|
|
|
|
+ gWlxPlugins.Add(Folder + 'preview' + PathDelim + 'preview.wlx');
|
|
|
|
+ end;
|
|
|
|
+ {$ENDIF}
|
|
|
|
+
|
|
|
|
+ {$ENDIF}
|
|
end;
|
|
end;
|
|
|
|
|
|
function CheckPlugin(var FileName: String): Boolean;
|
|
function CheckPlugin(var FileName: String): Boolean;
|