mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-05-05 00:11:41 +00:00
Fix when compiling without COOPNET
This commit is contained in:
parent
bc0a7f948f
commit
db939f8efd
1 changed files with 2 additions and 0 deletions
|
|
@ -138,12 +138,14 @@ void discord_activity_update(void) {
|
||||||
void discord_activity_update_check(void) {
|
void discord_activity_update_check(void) {
|
||||||
if (sQueuedLobby > 0) {
|
if (sQueuedLobby > 0) {
|
||||||
if (--sQueuedLobby == 0) {
|
if (--sQueuedLobby == 0) {
|
||||||
|
#ifdef COOPNET
|
||||||
gCoopNetDesiredLobby = sQueuedLobbyId;
|
gCoopNetDesiredLobby = sQueuedLobbyId;
|
||||||
snprintf(gCoopNetPassword, 64, "%s", sQueuedLobbyPassword);
|
snprintf(gCoopNetPassword, 64, "%s", sQueuedLobbyPassword);
|
||||||
network_reset_reconnect_and_rehost();
|
network_reset_reconnect_and_rehost();
|
||||||
network_set_system(NS_COOPNET);
|
network_set_system(NS_COOPNET);
|
||||||
network_init(NT_CLIENT, false);
|
network_init(NT_CLIENT, false);
|
||||||
djui_panel_join_message_create(NULL);
|
djui_panel_join_message_create(NULL);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue