what did i even update
This commit is contained in:
parent
540309605e
commit
dcd81f2b3d
4 changed files with 40 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue