Update discord activity when rehosting
This commit is contained in:
parent
52eba1990b
commit
54d0c03d46
|
@ -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…
Reference in New Issue