diff --git a/src/packages/game/IZ_app.c b/src/packages/game/IZ_app.c index 916e029..aee9d8f 100644 --- a/src/packages/game/IZ_app.c +++ b/src/packages/game/IZ_app.c @@ -46,7 +46,7 @@ IZ_ProcedureResult IZ_AppInitialize(struct IZ_App* app, u8 argc, const char* arg return IZ_APP_RUN_INPUT_INIT_ERROR; } - if (IZ_NetInitialize(&app->net_state, app, IZ_AppConnect, config_path, argc, argv)) { + if (IZ_NetInitialize(&app->net_state, app, IZ_AppRunNetworkingThread, config_path, argc, argv)) { return IZ_APP_RUN_NETWORKING_ERROR; } diff --git a/src/packages/game/IZ_app.h b/src/packages/game/IZ_app.h index 015655f..42765b1 100644 --- a/src/packages/game/IZ_app.h +++ b/src/packages/game/IZ_app.h @@ -28,6 +28,4 @@ typedef struct IZ_App { IZ_ProcedureResult IZ_AppRun(struct IZ_App*, u8, const char**); -IZ_ProcedureResult IZ_AppConnect(void*); - #endif diff --git a/src/packages/game/net/IZ_app.c b/src/packages/game/net/IZ_app.c index 77ebe69..dc1e8a0 100644 --- a/src/packages/game/net/IZ_app.c +++ b/src/packages/game/net/IZ_app.c @@ -259,8 +259,7 @@ void IZ_WSClientOnReceive(struct lws* wsi, IZ_WSClientSessionData* pss, void* in } } -IZ_ProcedureResult IZ_AppConnect(void* app_raw) { - struct IZ_App* app = app_raw; +IZ_ProcedureResult IZ_AppRunNetworkingThread(struct IZ_App* app) { IZ_NetState* net_state = IZ_AppGetNetState(app); if (IZ_WSClientInitialize(&net_state->ws, net_state->params)) { diff --git a/src/packages/game/net/IZ_app.h b/src/packages/game/net/IZ_app.h index a5a5ef1..1095d64 100644 --- a/src/packages/game/net/IZ_app.h +++ b/src/packages/game/net/IZ_app.h @@ -50,4 +50,6 @@ void IZ_AppBindConnection(struct IZ_App*, struct lws*); void IZ_AppHandleOutboundNetworking(struct IZ_App*); +IZ_ProcedureResult IZ_AppRunNetworkingThread(struct IZ_App*); + #endif