Commit graph

13992 commits

Author SHA1 Message Date
Nemoumbra
ef11d80b84 UPnP logs, wrong NpMatching2 syscall name, more names 2025-01-10 23:34:11 +03:00
Henrik Rydgård
fbd548dde5 struct style fix. no need to pragma(pack) them 2025-01-10 21:22:16 +01:00
Henrik Rydgård
5c7ca3f972 Delete some unused structs 2025-01-10 21:18:45 +01:00
AdamN
ec99cb47bd
Fix potential buffer size issue on sceNetInetGetsockname 2025-01-10 22:38:30 +07:00
AdamN
cbe8c922a4
Fix potential buffer size issue on sceNetInetGetpeername 2025-01-10 22:25:25 +07:00
Henrik Rydgård
885724db83 Add comments (checked that no other host socket numbers leak to the game) 2025-01-10 14:54:45 +01:00
Henrik Rydgård
e79fdaca57 Fix bug in sceNetInetPoll, similar to the previous select bug 2025-01-10 11:24:12 +01:00
Henrik Rydgård
a986286532
Merge pull request #19843 from ANR2MERefork/apctl_getinfo
An attempt to fix Driver 76 multiplayer
2025-01-10 09:23:35 +01:00
Henrik Rydgård
f2736af14c
Merge pull request #19844 from hrydgard/assorted-fixes
Deduplicate a OSD message, change DEBUG log level exclusions
2025-01-10 09:19:34 +01:00
Henrik Rydgård
bed0527c1a Deduplicate "Failed to bind port" messages (one was missing) 2025-01-10 01:28:52 +01:00
AdamN
e8bf2effc6
Changed Address Replacement log channel to WARN, because apparently Debug channel being disabled on non-Windows 2025-01-10 07:10:27 +07:00
AdamN
71fc03231f
Allow to get Apctl Info even when Apctl not inited yet. 2025-01-10 01:05:32 +07:00
Henrik Rydgård
101d68d352
Merge pull request #19837 from hrydgard/some-debugger-stuff
ImDebugger: Add a memory dump window
2025-01-09 14:15:49 +01:00
Henrik Rydgård
17f64ce61f
Merge pull request #19836 from ANR2MERefork/inet_bind
An attempt to fix UNO single player.
2025-01-09 13:41:03 +01:00
Henrik Rydgård
23954f5403 Implement the disassembly mode too 2025-01-09 13:35:29 +01:00
AdamN
6335144392
Only do address replacement when built-in Adhoc Server is enabled. 2025-01-09 16:39:45 +07:00
Henrik Rydgård
94bf5f7eeb Remove NetResolver.cpp/h (almost empty) 2025-01-09 09:27:41 +01:00
Henrik Rydgård
2a0e3b1084 Move out a utility function to Common/Net 2025-01-09 09:23:33 +01:00
Henrik Rydgård
5e50a1777a Move out unused function from sceNet 2025-01-09 09:23:20 +01:00
Henrik Rydgård
b13987e233 Move some code out from sceNet into sceNp and sceNp2 2025-01-09 09:06:23 +01:00
AdamN
1da23507c4
Allow Adhocctl to be initialized even when WLAN is disabled 2025-01-09 13:31:45 +07:00
Henrik Rydgård
0cec39d11f Add socket mapping for accept(). Don't know if games use it... 2025-01-08 19:36:01 +01:00
Henrik Rydgård
440fa80c5f Use the correct count parameter for select 2025-01-08 18:47:16 +01:00
Henrik Rydgård
cddd3d439d Crashfix with asan, minor 2025-01-08 18:03:45 +01:00
Henrik Rydgård
77fcb181a5 Just some code formatting 2025-01-08 17:01:27 +01:00
Henrik Rydgård
728268bb3f Better CreateSocket errro handling 2025-01-08 16:35:09 +01:00
Henrik Rydgård
698b73dd15 ImDebugger: Add Np and Sockets debugger windows, on a new Network menu 2025-01-08 16:29:18 +01:00
Henrik Rydgård
c9c594462f Track non-blocking state 2025-01-08 16:25:44 +01:00
Henrik Rydgård
b97b0e4cf6 Add Close method to socket manager 2025-01-08 16:25:15 +01:00
Henrik Rydgård
a1744a6989 Add SocketManager::CreateSocket for convenience 2025-01-08 15:27:54 +01:00
Henrik Rydgård
155a9f9dbc Turn the socket manager into a class 2025-01-08 14:59:40 +01:00
Henrik Rydgård
5026e92450 Set min socket number to 61. Somehow this fixes Linux?? 2025-01-08 14:46:45 +01:00
Henrik Rydgård
2c3f7f6806 Add a central location for managing HLE sockets 2025-01-08 13:29:09 +01:00
Henrik Rydgård
3dc2a1034d Setting a socket number minimum of 20 solved the Mac problems. I guess it clashes with the adhoc code? 2025-01-08 13:28:16 +01:00
Henrik Rydgård
c33ea84db1 Implement one of ANR2ME's TODOs 2025-01-08 13:27:51 +01:00
Henrik Rydgård
fcb3d636b4 Fix some closesocket bugs 2025-01-08 13:27:51 +01:00
Henrik Rydgård
8505e24812 Attempt to implement remapping in select/poll 2025-01-08 13:27:49 +01:00
Henrik Rydgård
0f2bd65845 Use the wrapper struct, except in case of poll/select 2025-01-08 13:27:20 +01:00
Henrik Rydgård
08f2bee1bd Add socket lookups 2025-01-08 13:26:08 +01:00
Henrik Rydgård
303a03c9a8 Cleanup, define socket struct 2025-01-08 13:26:08 +01:00
Henrik Rydgård
3ae17399eb Warning fixes 2025-01-08 12:56:57 +01:00
Henrik Rydgård
c3aa0f7452 Centralize socket-related includes, introduce socket_errno
This resolves some weird inconsistentes and include order problems
related to errno. Needed for the next steps.
2025-01-08 12:42:45 +01:00
Henrik Rydgård
baf6bcc41e Hide the "Not supported" notice. Minor cleanups 2025-01-08 09:24:32 +01:00
Henrik Rydgård
6922483460 Change Np country code to 'us' 2025-01-08 09:09:56 +01:00
Henrik Rydgård
9b82a9f180 Move all the Inet enum mappers to Core/HLE/NetInetConstants. Other cleanup. 2025-01-07 19:45:16 +01:00
Henrik Rydgård
6ebbb434e4 Restrict username minimum length too (3 chars) 2025-01-07 18:09:19 +01:00
Henrik Rydgård
01b06b76c9 Infrastructure username handling: Add separate username, pick Nickname as default if valid. 2025-01-07 17:43:02 +01:00
Henrik Rydgård
8d16ea408e Buildfix 2025-01-07 15:33:15 +01:00
Henrik Rydgård
895d8eb7fa Try ANR2ME's sceNetInet implementation 2025-01-07 10:31:32 +01:00
Henrik Rydgård
1e3e5c483e
Merge pull request #19819 from hrydgard/infra2-step2
SetSockopt: Support more levels
2025-01-06 18:29:19 +01:00