mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
Update discord activity when rehosting
This commit is contained in:
parent
52eba1990b
commit
54d0c03d46
1 changed files with 6 additions and 5 deletions
|
|
@ -155,6 +155,12 @@ bool network_init(enum NetworkType inNetworkType) {
|
||||||
gChangeLevelTransition = gLevelValues.entryLevel;
|
gChangeLevelTransition = gLevelValues.entryLevel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef DISCORD_SDK
|
||||||
|
if (gNetworkSystem == &gNetworkSystemDiscord) {
|
||||||
|
discord_activity_update(true);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
djui_chat_box_create();
|
djui_chat_box_create();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -468,11 +474,6 @@ static void network_rehost_update(void) {
|
||||||
|
|
||||||
gDiscordReconnecting = true;
|
gDiscordReconnecting = true;
|
||||||
djui_panel_do_host();
|
djui_panel_do_host();
|
||||||
#ifdef DISCORD_SDK
|
|
||||||
if (sNetworkReconnectType == NS_DISCORD) {
|
|
||||||
discord_activity_update(true);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
gDiscordReconnecting = false;
|
gDiscordReconnecting = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue