Commit Graph

339 Commits

Author SHA1 Message Date
ANR2ME
1bfe089785 Added delay result to SetSocketAlert for other threads that use the socket to trigger the alert. 2020-10-29 06:00:16 +07:00
ANR2ME
d87713226c Socket alerts can be triggered regardless of the nonblocking flag 2020-10-29 06:00:15 +07:00
ANR2ME
fa95afab07 Do not clear socket alert flag after signaled. 2020-10-29 06:00:15 +07:00
ANR2ME
0363319f14 Prevent Scanning issue after reconnected to AdhocServer, also Updated logging to showing the error code on sceNetAdhocctlScan 2020-10-29 06:00:15 +07:00
ANR2ME
40102787c8 Updated validity checking of mac address on PdpCreate, PtpListen, and PtpOpen 2020-10-29 06:00:15 +07:00
ANR2ME
8762718abf Updated Loggings and return value of PdpSend and PdpRecv 2020-10-29 06:00:14 +07:00
ANR2ME
3020efdbe7 Added hleEatMicro (may not be accurate tho) on PdpSend, PdpRecv, and GetPeerInfo. 2020-10-29 06:00:14 +07:00
ANR2ME
5216433e0c Prevent memory leaks when attempting to play GameMode multiplayer again after loading from SaveState in the middle of GameMode multiplayer. 2020-10-29 06:00:13 +07:00
ANR2ME
335650da6c Prevent Port leaks after loading SaveState in the middle of multiplayer resulting to "port in use" error on the next attempt to play multiplayer. 2020-10-29 06:00:13 +07:00
ANR2ME
e11e8a7fda Updated Loggings and return value on PtpSend, PtpFlush, and PtpRecv. 2020-10-19 23:32:10 +07:00
ANR2ME
f597382619 Show a warning just in case an abnormal situation occurred. 2020-10-19 23:32:09 +07:00
ANR2ME
152f9a7e2b Fix disconnection issue due to timeout on blocking PTP Socket 2020-10-19 23:32:06 +07:00
ANR2ME
e5a02cebb4 Added Connection Refused error code on PtpConnect 2020-10-19 19:08:10 +07:00
ANR2ME
d395611135 Fixed disconnection issue when multiplayer game started on Shaun White Snowboarding, and improved multiplayer performance on games that use GameMode. 2020-10-19 19:08:10 +07:00
ANR2ME
5a169077f1 Updated Adhocctl timings based on the timestamp on JPCSP + prx files 2020-10-19 19:08:10 +07:00
ANR2ME
0a04f47ea9 Removing the workaround that was used to fix Gran Turismo in the past but no longer needed. Since zero mac address is an invalid mac we should return an error. 2020-10-16 16:15:42 +07:00
ANR2ME
b86f3ca0f4 Updated AdhocPollSocket timeout checking. 2020-10-16 16:15:42 +07:00
ANR2ME
6d0a4fe681 Increasing Adhocctl timeout to 5 seconds (with side effects of longer freezes when detecting disconnected players), to prevent failure to connect to AdhocServer on time due to some unknown reason where sometimes it tooks more than 2 seconds for Adhocctl Init to connect to AdhocServer on localhost (normally only 10 ms), and sometimes it tooks more than 1 seconds for built-in AdhocServer to be ready (normally only 1 ms) 2020-10-16 16:15:40 +07:00
ANR2ME
40c4df2306 Fix disconnection issue when joining multiplayer on Capcom Puzzle World 2020-10-16 12:23:18 +07:00
ANR2ME
00b11115bb Fixed timeout issue due to the latest CoreTiming::GetGlobalTimeUsScaled() have a possibility to get smaller number than the previous one. 2020-10-11 13:34:30 +07:00
ANR2ME
59e2bab7ec Added some network-related missing error codes. 2020-10-11 09:57:56 +07:00
ANR2ME
8f24e427fb Prevent sceNetAdhocctlGetGameModeInfo from spamming Warn/Info Log on Street Supremacy 2020-10-10 01:43:01 +07:00
ANR2ME
731461ad4c Minor changes. 2020-10-10 01:01:35 +07:00
ANR2ME
ee96f5aef0 Return early to reduce indentation on AdhocMatching code 2020-10-10 01:01:24 +07:00
ANR2ME
93e2a1b586 Updated AdhocPollSocket implementation to fix Bleach Heat the Soul 7, Fate Unlimited Codes, Carnage Heart EXA 2020-10-10 01:01:12 +07:00