summaryrefslogtreecommitdiff
path: root/vfs/UVFSCore.pas
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@redhat.com>2024-12-24 12:41:48 +0100
committerTomas Bzatek <tbzatek@redhat.com>2025-11-27 19:39:51 +0100
commit1b2b4bb4f3ecc034a6e9364d8768e50b167a9680 (patch)
tree065ddde53b64f7957a30b7dc9d83a748f309868c /vfs/UVFSCore.pas
parentb9703b29819b619037cc282d719c187e51bacd30 (diff)
downloadtuxcmd-1b2b4bb4f3ecc034a6e9364d8768e50b167a9680.tar.xz
Rough GTK3 port
Diffstat (limited to 'vfs/UVFSCore.pas')
-rw-r--r--vfs/UVFSCore.pas14
1 files changed, 14 insertions, 0 deletions
diff --git a/vfs/UVFSCore.pas b/vfs/UVFSCore.pas
index b6c516d..216cd5e 100644
--- a/vfs/UVFSCore.pas
+++ b/vfs/UVFSCore.pas
@@ -173,6 +173,7 @@ type
procedure DoInitPlugins;
+function LookupVFSPlugin(const ModuleID: string): TVFSPlugin;
var PluginList: TList;
@@ -1006,6 +1007,19 @@ end;
(********************************************************************************************************************************)
(********************************************************************************************************************************)
+function LookupVFSPlugin(const ModuleID: string): TVFSPlugin;
+var i: integer;
+begin
+ Result := nil;
+ for i := 0 to PluginList.Count - 1 do
+ if Trim(TVFSPlugin(PluginList[i]).ModuleID) = ModuleID then begin
+ Result := TVFSPlugin(PluginList[i]);
+ Break;
+ end;
+end;
+
+(********************************************************************************************************************************)
+(********************************************************************************************************************************)
function GetBinaryPath: string;
var i: integer;
Buf: array[0..1024] of char;