Function get_plugin_handle

Source
pub fn get_plugin_handle() -> Result<PluginHandle, ApiStorageError>
Expand description

Get the plugin handle (index of how many dlls SKSE has loaded) of this SKSE plugin dll.

§Errors

If the internal global API storage is uninitialized because forgot to call skse::init

§Example

use commonlibsse_ng::skse::api::get_plugin_handle;

match get_plugin_handle() {
    Ok(handle) => println!("Plugin handle(dll index): {:?}", handle),
    Err(e) => println!("Error: {}", e),
}