diff --git a/src/pc/djui/djui.c b/src/pc/djui/djui.c index 0a030c77..fd5c1144 100644 --- a/src/pc/djui/djui.c +++ b/src/pc/djui/djui.c @@ -29,6 +29,7 @@ void djui_init(void) { void djui_connect_menu_open(void) { djui_panel_shutdown(); + gDjuiInMainMenu = true; djui_panel_main_create(NULL); djui_panel_join_create(NULL); djui_panel_join_message_create(NULL); diff --git a/src/pc/network/network.c b/src/pc/network/network.c index 04e7ce30..f7787664 100644 --- a/src/pc/network/network.c +++ b/src/pc/network/network.c @@ -86,8 +86,6 @@ bool network_init(enum NetworkType inNetworkType) { gOverrideEeprom = NULL; djui_chat_box_create(); - } else if (gNetworkType == NT_CLIENT) { - network_player_connected(NPT_SERVER, 0, 0, 0, "Player"); } LOG_INFO("initialized"); diff --git a/src/pc/network/packets/packet_save_file.c b/src/pc/network/packets/packet_save_file.c index 9e376227..8b63f00f 100644 --- a/src/pc/network/packets/packet_save_file.c +++ b/src/pc/network/packets/packet_save_file.c @@ -3,6 +3,7 @@ #include "game/save_file.h" void network_send_save_file(s32 fileIndex) { + if (gNetworkPlayerServer == NULL) { return; } assert(gNetworkType == NT_CLIENT); struct Packet p; packet_init(&p, PACKET_SAVE_FILE, true, false);