3 new API calls for plug-in management have been added to the development version (2.1.x)
Code: Select all
BZF_API int bz_getLoadedPlugins( bz_APIStringList * list );
Will fill the passed in list with the names of all loaded plugins. Returns the number of plug-ins in the list.
Code: Select all
BZF_API bool bz_loadPlugin( const char* path, const char* params );
loads a plug-in, returns true if successful.
Code: Select all
BZF_API bool bz_unloadPlugin( const char* path );
unloads the specified plug-in, returns true if successful. It is not recommended that a plug-in attempt to unload itself.
These commands are the same as the / command versions, but accessible by the API.