Standard header for SKSE plugin info
Provides a common way for SKSE plugins to know their own name and version.
CommonLib NG provides this functionality via SKSE::PluginDeclaration but this is not a core feature of CommonLib.
This interface is integrated into the CommonLib packages available via: SkyrimScripting/Packages
If you are using a package which integrates SKSEPluginInfo, then you can simply include the header to read the plugin info.
// ... my SKSE plugin ...
// Get the plugin name, e.g. "MyCoolPlugin"
const char* pluginName = SKSEPluginInfo::PluginName;
// Get the plugin version parts combined into a string, e.g. "1.0.0"
std::string pluginVersion = SKSEPluginInfo::VersionString.string();And if you want some more specific access to the plugin version:
// ...Helper headers are provided for defining these required DLL interfaces:
SKSEPlugin_QuerySKSEPlugin_Version(only requires for Skyrim AE 1.6+)
Here is a minimal working SKSE plugin using core CommonLib (not NG):
// ... TODO ...