mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 11:17:54 +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
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue