DECL(int, FSAddClientEx, void *r3, void *r4, void *r5) { int res = real_FSAddClientEx(r3, r4, r5); if ((int)bss_ptr != 0x0a000000 && res >= 0) { int client = client_num_alloc(r3); if (client < MAX_CLIENT && client >= 0) { cafiine_connect(&bss.socket_fs[client]); } } return res; }
DECL(int, FSAddClientEx, void *r3, void *r4, void *r5) { int res = real_FSAddClientEx(r3, r4, r5); if ((int)bss_ptr != 0x0a000000 && res >= 0) { if (GAME_RPX_LOADED != 0) { int client = client_num_alloc(r3); if (client >= 0) { if (fs_connect(&bss.socket_fs[client]) != 0) client_num_free(client); } } } return res; }