Switch from NetWrap to net_hi (allow more than 2 player games)

This commit is contained in:
mid
2025-01-26 20:25:23 +02:00
parent 1c165601c2
commit aef3de3df9
9 changed files with 318 additions and 274 deletions

11
src/net_hi.h Normal file
View File

@@ -0,0 +1,11 @@
#pragma once
#include<stdbool.h>
bool net_hi_request_peercode(void *ud, void(*callback)(void*, const char *peercode));
bool net_hi_setup(bool host);
void net_hi_update(double now);
void net_hi_add_punch(const char *peercode);
bool net_hi_connect(const char *peercode);