提交 ee4a93b4 编写于 作者: J jp9000

Add function to get current core version

The version macro that modules use to compile versus the actual core
version that may be in use may be different, so this is a way to compare
them to check for compatibility issues later on.
上级 24afd26d
......@@ -596,6 +596,11 @@ bool obs_initialized(void)
return obs != NULL;
}
uint32_t obs_get_version(void)
{
return LIBOBS_API_VER;
}
void obs_set_locale(const char *locale)
{
if (!obs)
......
......@@ -211,6 +211,9 @@ EXPORT void obs_shutdown(void);
/** @return true if the main OBS context has been initialized */
EXPORT bool obs_initialized(void);
/** @return The current core version */
EXPORT uint32_t obs_get_version(void);
/**
* Sets a new locale to use for modules. This will call obs_module_set_locale
* for each module with the new locale.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册