Function loadorder_ffi::lo_set_plugin_active
[−]
[src]
#[no_mangle]pub unsafe extern "C" fn lo_set_plugin_active(
handle: lo_game_handle,
plugin: *const c_char,
active: bool
) -> c_uint
Activates or deactivates a given plugin.
If active
is true, the plugin will be activated. If active
is false, the plugin will be
deactivated.
When activating a plugin that is ghosted, the ".ghost" extension is removed. If a plugin is already in its target state, ie. a plugin to be activated is already activate, or a plugin to be deactivated is already inactive, no changes are made.
Returns LIBLO_OK
if successful, otherwise a LIBLO_ERROR_*
code is returned.