mirror of https://github.com/Xaymar/obs-StreamFX
Compare commits
11 Commits
e82823d49c
...
54cd3eef5b
Author | SHA1 | Date |
---|---|---|
Michael Fabian 'Xaymar' Dirks | 54cd3eef5b | |
Michael Fabian 'Xaymar' Dirks | d8a673a578 | |
Michael Fabian 'Xaymar' Dirks | efb6e9f0cb | |
Michael Fabian 'Xaymar' Dirks | 0ce977b9dd | |
Michael Fabian 'Xaymar' Dirks | 98403126ad | |
Michael Fabian 'Xaymar' Dirks | 8fb37b8d21 | |
Michael Fabian 'Xaymar' Dirks | d82d3901e4 | |
Michael Fabian 'Xaymar' Dirks | f26565cf1e | |
Michael Fabian 'Xaymar' Dirks | 9021274297 | |
Michael Fabian 'Xaymar' Dirks | 25ba51df12 | |
Michael Fabian 'Xaymar' Dirks | 50c85608c3 |
1039
CMakeLists.txt
1039
CMakeLists.txt
File diff suppressed because it is too large
Load Diff
|
@ -112,6 +112,8 @@ MODULE_EXPORT bool obs_module_load(void)
|
|||
}
|
||||
}
|
||||
|
||||
MODULE_EXPORT void obs_module_post_load(void) {}
|
||||
|
||||
MODULE_EXPORT void obs_module_unload(void)
|
||||
{
|
||||
try {
|
||||
|
|
|
@ -102,6 +102,10 @@ std::shared_ptr<::streamfx::util::library> streamfx::util::library::load(std::st
|
|||
|
||||
std::shared_ptr<::streamfx::util::library> streamfx::util::library::load(obs_module_t* instance)
|
||||
{
|
||||
if (!instance) {
|
||||
throw std::runtime_error("Can't load nullptr as a library.");
|
||||
}
|
||||
|
||||
// Get an absolute path to the module.
|
||||
auto path = std::filesystem::absolute(std::filesystem::u8path(obs_get_module_binary_path(instance)));
|
||||
|
||||
|
|
Loading…
Reference in New Issue