Log in

View Full Version : PluginDir2_5 in registry not working


NoX1911
23rd February 2004, 01:23
Hi,
i set following key:

[HKEY_LOCAL_MACHINE\SOFTWARE\AviSynth]
"PluginDir2_5"="D:\\Backup Appz\\!Video\\AviSynth\\Plugins"

and use following command to load plugins:
LoadPlugin("MPEG2Dec3dg.dll")

But when opening the file the plugin wont load:
LoadPlugin: unable to load "MPEG2DEC3dg.dll"
(D:\script.avs, line 1)

When i enter full path in script it does work.
Whats wrong?

r6d2
23rd February 2004, 05:38
Just checking... Is that "!" really part of the path?

Are the DLLs on the aforementioned folder?

IIRC, the idea of setting the registry variable is NOT to invoke the LoadPlugin command, just use the functions...

NoX1911
23rd February 2004, 13:36
Yep, you're right - working now. No need for 'LoadPlugin'. I thought the registry path is a kind of PATH variable.
Thanks!

r6d2
23rd February 2004, 13:40
Originally posted by HeldImZelt
I thought the registry path is a kind of PATH variable.It is! Remember the LoadPlugin does not call the function, but merely declares it for later use.

You're welcome.

Wilbert
23rd February 2004, 13:53
You are looking for SetWorkingDir

http://www.avisynth.org/index.php?page=ScriptFunctions


Just include

SetWorkingDir("D:\")

in your script