(Discord) Call Discord_RunCallbacks directly
This commit is contained in:
parent
b059119213
commit
12698f561f
|
@ -511,8 +511,3 @@ void discord_shutdown(void)
|
||||||
Discord_Shutdown();
|
Discord_Shutdown();
|
||||||
discord_ready = false;
|
discord_ready = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void discord_run_callbacks(void)
|
|
||||||
{
|
|
||||||
Discord_RunCallbacks();
|
|
||||||
}
|
|
||||||
|
|
|
@ -47,8 +47,6 @@ void discord_shutdown(void);
|
||||||
|
|
||||||
void discord_update(enum discord_presence presence);
|
void discord_update(enum discord_presence presence);
|
||||||
|
|
||||||
void discord_run_callbacks(void);
|
|
||||||
|
|
||||||
bool discord_is_ready(void);
|
bool discord_is_ready(void);
|
||||||
|
|
||||||
void discord_avatar_set_ready(bool ready);
|
void discord_avatar_set_ready(bool ready);
|
||||||
|
|
|
@ -101,6 +101,10 @@
|
||||||
#include "switch_performance_profiles.h"
|
#include "switch_performance_profiles.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_DISCORD
|
||||||
|
#include "deps/discord-rpc/include/discord_rpc.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "config.def.h"
|
#include "config.def.h"
|
||||||
#include "config.def.keybinds.h"
|
#include "config.def.keybinds.h"
|
||||||
|
|
||||||
|
@ -24167,7 +24171,7 @@ int runloop_iterate(void)
|
||||||
|
|
||||||
#ifdef HAVE_DISCORD
|
#ifdef HAVE_DISCORD
|
||||||
if (discord_is_inited)
|
if (discord_is_inited)
|
||||||
discord_run_callbacks();
|
Discord_RunCallbacks();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (runloop_frame_time.callback)
|
if (runloop_frame_time.callback)
|
||||||
|
|
Loading…
Reference in New Issue