Function get_plugin_name

Source
pub fn get_plugin_name() -> Result<&'static str, ApiStorageError>
Expand description

Get the plugin’s name.

§Errors

  • If the internal global API storage is uninitialized because forgot to call skse::init
  • Returns an error if forgot to define the SKSEPlugin_Version symbol in this SKSE plugin dll

§Example

use commonlibsse_ng::skse::api::{get_plugin_name};
match get_plugin_name() {
    Ok(name) => println!("Plugin name: {}", name),
    Err(e) => println!("Error: {}", e),
}