Function loadorder_ffi::lo_fix_plugin_lists[][src]

#[no_mangle]
pub unsafe extern "C" fn lo_fix_plugin_lists(handle: lo_game_handle) -> c_uint

Fix up the text file(s) used by the load order and active plugins systems.

This checks that the load order and active plugin lists conform to libloadorder's validity requirements (see Miscellaneous Details for details), and resolves any issues encountered, then saves the fixed lists.

For the case of a plugin appearing multiple times in a load order / active plugin list, libloadorder discards all but the last instance of that plugin.

For the case of more than 255 plugins being active, libloadorder deactivates as many plugins as required to bring the number of plugins active below 256, starting from the end of the load order and working towards the beginning.

This can be useful for when plugins are uninstalled manually or by a utility that does not also update the load order / active plugins systems correctly.

Returns LIBLO_OK if successful, otherwise a LIBLO_ERROR_* code is returned.