mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-26 05:55:15 +00:00
Make DirectX call discord_update()
This commit is contained in:
parent
1ad83bd004
commit
8367e7d6ee
1 changed files with 7 additions and 0 deletions
|
@ -33,6 +33,10 @@ extern "C" {
|
|||
#include "gfx_screen_config.h"
|
||||
#include "gfx_pc.h"
|
||||
|
||||
#ifdef DISCORD_SDK
|
||||
#include "pc/discord/discord.h"
|
||||
#endif
|
||||
|
||||
#define WINCLASS_NAME L"N64GAME"
|
||||
|
||||
#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)) {
|
||||
TranslateMessage(&msg);
|
||||
DispatchMessage(&msg);
|
||||
#ifdef DISCORD_SDK
|
||||
discord_update();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue