From 66c58d0a28ba3067620aae3e1c6ff21f01f400ff Mon Sep 17 00:00:00 2001 From: tobigun Date: Mon, 8 Nov 2010 08:49:23 +0000 Subject: handle linux and mac os x plugins git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@2715 b956fd51-792f-4845-bead-9b4dfca2ff2c --- mediaplugin/src/media/UMediaPlugin.pas | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'mediaplugin/src') diff --git a/mediaplugin/src/media/UMediaPlugin.pas b/mediaplugin/src/media/UMediaPlugin.pas index 277e6dda..eb4cf395 100644 --- a/mediaplugin/src/media/UMediaPlugin.pas +++ b/mediaplugin/src/media/UMediaPlugin.pas @@ -423,10 +423,18 @@ var RegisterFunc: TPluginRegisterFunc; PluginInfo: PMediaPluginInfo; PluginEntry: PMediaPluginEntry; +const + {$IF Defined(MSWINDOWS)} + ModuleExt = '.dll'; + {$ELSEIF Defined(DARWIN)} + ModuleExt = '.dylib'; + {$ELSE} //Defined(UNIX) + ModuleExt = '.so'; + {$IFEND} begin MediaPlugins := TList.Create; - LibPath := MediaPluginPath.Append('*.dll'); + LibPath := MediaPluginPath.Append('*' + ModuleExt); Iter := FileSystem.FileFind(LibPath, faAnyFile); while (Iter.HasNext) do begin -- cgit v1.2.3