mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-21 21:17:19 +00:00
[obs] call debug_init()
to initialize debug print
Fixes a segfault reported in discord, DEBUG_* macros are not available
until `debug_init()` has been called as of commit
1effd5fddc
This commit is contained in:
parent
789ee70674
commit
4d065d577b
@ -22,6 +22,8 @@
|
||||
#include <common/version.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "common/debug.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#undef EXPORT
|
||||
#define EXPORT __declspec(dllexport)
|
||||
@ -38,6 +40,7 @@ extern struct obs_source_info lg_source;
|
||||
|
||||
MODULE_EXPORT bool obs_module_load(void)
|
||||
{
|
||||
debug_init();
|
||||
printf("Looking Glass OBS Client (%s)\n", BUILD_VERSION);
|
||||
obs_register_source(&lg_source);
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user