pub fn get_plugin_version() -> Result<Version, ApiStorageError>
Expand description
Get the plugin’s version.
§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_version;
match get_plugin_version() {
Ok(version) => println!("Plugin version: {:?}", version),
Err(e) => println!("Error: {}", e),
}