aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-11-08 08:49:23 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-11-08 08:49:23 +0000
commit66c58d0a28ba3067620aae3e1c6ff21f01f400ff (patch)
treef7ce9b4b79834c9efa41053b09d8cdbf22e88df4
parentb74578a2ad4940b467056d75a6888cda13960ddf (diff)
downloadusdx-66c58d0a28ba3067620aae3e1c6ff21f01f400ff.tar.gz
usdx-66c58d0a28ba3067620aae3e1c6ff21f01f400ff.tar.xz
usdx-66c58d0a28ba3067620aae3e1c6ff21f01f400ff.zip
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
Diffstat (limited to '')
-rw-r--r--mediaplugin/src/media/UMediaPlugin.pas10
1 files changed, 9 insertions, 1 deletions
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