Vita: Try to fix networking, take 3

This commit is contained in:
UnknownShadow200 2023-12-08 07:18:38 +11:00
parent 0532bef3b3
commit 19038d55a4
2 changed files with 7 additions and 4 deletions

View File

@ -83,7 +83,8 @@ And also runs on:
* PS Vita - unfinished, rendering issues (can [download from here](https://www.classicube.net/download/vita), **untested on real hardware**)
* Xbox - unfinished, major rendering issues (can [download from here](https://www.classicube.net/download/xbox), **untested on real hardware**)
* PS3 - unfinished, rendering issues (can [download from here](https://www.classicube.net/download/ps3), **untested on real hardware**)
* Nintendo 64 - unfinished, major rendering issues
* Nintendo 64 - unfinished, moderate rendering issues
* PS2 - unfinished, major rendering and stability issues
# Compiling
@ -359,6 +360,8 @@ Further information (e.g. style) for ClassiCube's source code can be found in th
* [libdragon](https://github.com/DragonMinded/libdragon) - Backend for Nintendo 64
* [cen64](https://github.com/n64dev/cen64) - Emulator used to test Nintendo 64 port
* [ares](https://github.com/ares-emulator/ares) - Emulator used to test Nintendo 64 port
* [ps2sdk](https://github.com/DragonMinded/libdragon) - Backend for Nintendo 64
* [PCSX2](https://github.com/ps2dev/ps2sdk) - Emulator used to test PS2 port
## Sound Credits

View File

@ -289,7 +289,7 @@ static int ParseHost(union SocketAddress* addr, const char* host) {
int rid = sceNetResolverCreate("CC resolver", NULL, 0);
if (rid < 0) return ERR_INVALID_ARGUMENT;
int ret = sceNetResolverStartNtoa(rid, host, &addr->v4.sin_addr, 1 /* timeout */, 5 /* retries */, 0 /* flags */);
int ret = sceNetResolverStartNtoa(rid, host, &addr->v4.sin_addr, 0, 0, 0);
sceNetResolverDestroy(rid);
return ret;
}
@ -358,7 +358,7 @@ static cc_result Socket_Poll(cc_socket s, int mode, cc_bool* success) {
ev.data.fd = s;
ev.events = flags;
if ((res = sceNetEpollControl(epoll_id, SCE_NET_EPOLL_CTL_ADD, s, &ev))) return res;
if ((res = sceNetEpollControl(epoll_id, SCE_NET_EPOLL_CTL_ADD, s, &ev))) return res;
num_events = sceNetEpollWait(epoll_id, &ev, 1, 0);
sceNetEpollControl(epoll_id, SCE_NET_EPOLL_CTL_DEL, s, NULL);
@ -390,7 +390,7 @@ cc_result Socket_CheckWritable(cc_socket s, cc_bool* writable) {
static char net_memory[512 * 1024] __attribute__ ((aligned (16))); // TODO is just 256 kb enough ?
static void InitNetworking(void) {
sceSysmoduleLoadModule(SCE_SYSMODULE_NET);
sceSysmoduleLoadModule(SCE_SYSMODULE_NET);
SceNetInitParam param;
param.memory = net_memory;