Make DirectX call discord_update()

This commit is contained in:
MysterD 2023-06-05 15:36:22 -07:00
parent 1ad83bd004
commit 8367e7d6ee

View file

@ -33,6 +33,10 @@ extern "C" {
#include "gfx_screen_config.h" #include "gfx_screen_config.h"
#include "gfx_pc.h" #include "gfx_pc.h"
#ifdef DISCORD_SDK
#include "pc/discord/discord.h"
#endif
#define WINCLASS_NAME L"N64GAME" #define WINCLASS_NAME L"N64GAME"
#define DECLARE_GFX_DXGI_FUNCTIONS #define DECLARE_GFX_DXGI_FUNCTIONS
@ -410,6 +414,9 @@ static void gfx_dxgi_main_loop(void (*run_one_game_iter)(void)) {
while (GetMessage(&msg, nullptr, 0, 0)) { while (GetMessage(&msg, nullptr, 0, 0)) {
TranslateMessage(&msg); TranslateMessage(&msg);
DispatchMessage(&msg); DispatchMessage(&msg);
#ifdef DISCORD_SDK
discord_update();
#endif
} }
} }