mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-24 12:25:11 +00:00
plugin: Write plugin version to log file on load and unload
This commit is contained in:
parent
8ab050ad29
commit
a54a526c4b
1 changed files with 6 additions and 0 deletions
|
@ -35,6 +35,9 @@ std::list<std::function<void()>> initializerFunctions;
|
||||||
std::list<std::function<void()>> finalizerFunctions;
|
std::list<std::function<void()>> finalizerFunctions;
|
||||||
|
|
||||||
MODULE_EXPORT bool obs_module_load(void) {
|
MODULE_EXPORT bool obs_module_load(void) {
|
||||||
|
P_LOG_INFO("[" PLUGIN_NAME "] Loading Version %u.%u.%u (Build %u)",
|
||||||
|
PROJECT_VERSION_MAJOR, PROJECT_VERSION_MINOR, PROJECT_VERSION_PATCH,
|
||||||
|
PROJECT_VERSION_TWEAK);
|
||||||
for (auto func : initializerFunctions) {
|
for (auto func : initializerFunctions) {
|
||||||
func();
|
func();
|
||||||
}
|
}
|
||||||
|
@ -42,6 +45,9 @@ MODULE_EXPORT bool obs_module_load(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
MODULE_EXPORT void obs_module_unload(void) {
|
MODULE_EXPORT void obs_module_unload(void) {
|
||||||
|
P_LOG_INFO("[" PLUGIN_NAME "] Unloading Version %u.%u.%u (Build %u)",
|
||||||
|
PROJECT_VERSION_MAJOR, PROJECT_VERSION_MINOR, PROJECT_VERSION_PATCH,
|
||||||
|
PROJECT_VERSION_TWEAK);
|
||||||
for (auto func : finalizerFunctions) {
|
for (auto func : finalizerFunctions) {
|
||||||
func();
|
func();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue