ok, loaded = HavePlugin(name$[, version, revision])
name$
is currently
available. In that case HavePlugin()
will return True
in the first return value.
The second return value indicates whether the plugin has been auto-loaded at
startup or not. By default, Hollywood will auto-load all plugins at startup but
this behaviour can be changed either by prefixing plugin filenames with an
underscore character ('_') or by using the -skipplugins
console argument. If the plugin has not been loaded, you can call LoadPlugin()
on it to load it manually.
HavePlugin()
accepts two optional arguments that can be used to check if a
certain version of the plugin is available. Note that this can only be checked
if the plugin has been loaded already. If the plugin hasn't been loaded yet,
HavePlugin()
won't be able to check its version.
True
if the plugin is available in the specified versionTrue
if the plugin has already been loaded