what did i even update

This commit is contained in:
Nishi 2025-12-20 05:15:27 +09:00
commit dcd81f2b3d
Signed by: nishi
GPG key ID: 27EF69B208EB9343
4 changed files with 40 additions and 3 deletions

View file

@ -6,6 +6,9 @@ static void net_return(MwWidget handle, void* user, void* client) {
scene_change(AF_SCENE_MAIN);
}
static void on_packet(fishsoup_client_t* client, fishsoup_packet_t* pkt) {
}
void net_connect(const char* username, const char* hostname, int port) {
scene_change(AF_SCENE_CONNECTING);
client = fishsoup_client(hostname, port == 0 ? AF_DEFAULT_PORT : port);
@ -13,6 +16,8 @@ void net_connect(const char* username, const char* hostname, int port) {
MwAddUserHandler(ui_message("Failed to connect"), MwNactivateHandler, net_return, NULL);
return;
}
fishsoup_client_on_packet(client, on_packet);
}
void net_poll(void) {