Commit Graph
306 Commits
Author SHA1 Message Date
Henrik RydgårdandGitHub dbfa4e6830 Merge pull request #15213 from ANR2ME/adhoc
[Adhoc] Updated PdpCreate, PdpSend, PdpRecv, GetPdpStat, GetPtpStat
2021-12-08 21:38:23 +01:00
ANR2ME 69ec6b1972 Fix Tekken 5 Dark Resurrection Multiplayer 2021-12-08 12:00:59 +07:00
ANR2ME 26fd74edd4 Updated GetPtpStat 2021-12-08 08:50:14 +07:00
ANR2ME 004ecc008e Updated GetPdpStat 2021-12-08 08:50:11 +07:00
ANR2ME f1e4b41f12 Discard PDP packets from an IP that can't be resolved to Player's MAC address (simple version) to prevent confusing the game, since the source MAC won't be updated and may contains invalid MAC.
Added TODO to handle unresolvable packets properly.
2021-12-08 08:46:45 +07:00
ANR2ME 6d1a069248 Added another returned error code on PdpCreate 2021-12-08 08:45:46 +07:00
ANR2ME 79d31d4b85 Allow Sending PDP to non-existing MAC address (except invalid mac address). Fixes an issue on NBA Ballers Rebound where players unable to enter Multiplayer Menu again after getting connection issue. 2021-12-08 08:45:45 +07:00
Vitaly CheptsovandGitHub 5600ac0161 Adhoc: Drop useless pointer check
Fixes compiler warning (-Wpointer-bool-conversion)
2021-10-20 12:08:29 +03:00
AdamNandGitHub 1956624972 Merge pull request #14969 from ANR2ME/adhoc
[Adhoc] Workaround for a more cross-platform behavior on PtpConnect (but inaccurate)
2021-10-06 22:33:12 +07:00
ANR2ME c34efa3e3e Workaround to prevent some games from not retrying to connect on non-Windows system. This will also make a more cross-platform behavior on Windows/Linux/BSD 2021-10-05 23:10:40 +07:00
ANR2ME 00a0885509 Minor changes 2021-10-05 23:10:40 +07:00
ANR2ME ed7f1b72e2 An attempt to implement AdhocDiscover (can only Cancel the progress for now) 2021-10-01 12:13:03 +07:00
ANR2ME 5b010afff3 oops need to typecast metasocket 2021-09-28 20:44:03 +07:00
ANR2ME 9a714249a6 Changing most frequently used global vars to atomic to avoid possible multi-threading issue on friendFinder thread which communicates with AdhocServer in background.
PS: There are more global vars being used here (too many actually), so we should find a better approach in the future (ie. using PSPThread instead).
2021-09-28 20:44:03 +07:00
ANR2ME 6a79f59c06 Fix threading issue when exiting PPSSPP due to unjoined AdhocServer thread when AdhocServer failed to bind the socket and exited the thread early. 2021-09-28 20:44:03 +07:00
ANR2ME 1fd54153fc Prevent some games (ie. DBZ SB2) from repeatedly trying to Disconnect Adhocctl when not connected to AdhocServer. 2021-09-28 20:44:03 +07:00
ANR2ME 4741357bef Fix possible race condition issue when sending AdhocMatching data 2021-09-23 12:51:12 +07:00
ANR2ME 73b2070821 Temporary fix to avoid a crash that happened due to trying to logs a syscall's argument when being Logged from another thread (AdhocMatchingInput thread) 2021-09-23 12:51:09 +07:00
ANR2ME ee7383193b Fix race condition issue on AdhocMatching 2021-09-21 15:32:41 +07:00
ANR2ME 2bda9c1c84 Keep tracks of the sender/source port on GameMode for further communication, in case it was remapped by router or ISP for some reason. 2021-09-19 10:55:03 +07:00
ANR2ME ef279657dc Shows a warning when detecting a different sender/source port on GameMode. 2021-09-19 10:54:59 +07:00
ANR2ME 62a7ea2f41 Minor change to AdhocMatching's senderport type 2021-09-19 10:35:19 +07:00
ANR2ME 2305de42f0 Keeping track the source port of received data on AdhocMatching to be used for further communication, in the case the port was re-mapped for some reason. 2021-09-17 12:36:56 +07:00
ANR2ME a95678ae49 Show a warning if other players detected to have their port being re-mapped, where communication with them might have an issue. 2021-09-17 12:36:56 +07:00
ANR2ME 2bb5453dc6 Don't ignores unknown sender/source port, due to a possibility of port re-mapping done by router or ISP the source port might be different. 2021-09-17 12:36:56 +07:00
ANR2ME fa92cda23d Minor change to AdhocMatching logging 2021-09-17 12:36:56 +07:00
ANR2ME 704d1f94a6 Fix freezing issue during GameMode initialization on some games (ie. Hammerin' Hero) 2021-09-15 01:13:39 +07:00
ANR2ME e3088e5f96 Fix Socket error 10014 on Windows when hosting a game of Vulcanus Seek and Destroy 2021-09-14 05:58:49 +07:00
Unknown W. Brackets 3ac669f80b Core: Fix some minor gcc warnings. 2021-09-13 08:13:14 -07:00
Sean McGovern 6f346e5d76 sceNetAdhoc: fix format specifier for debug log 2021-08-01 13:15:39 -04:00
ANR2ME e059bc980c Updated Logs on sceNetAdhocDiscover to find more info on games that use AdhocDiscover. 2021-06-25 12:22:49 +07:00
ANR2ME a7752997e1 Minor changes to Wrapped Port detection. 2021-06-21 18:28:37 +07:00
ANR2ME 4251f821dc Making sure not to get random port when original port is not zero. 2021-06-21 18:28:37 +07:00
ANR2ME fda4744af3 Show the returned error code on sceNetAdhocctlCreate/Connect/Join on Debug Log 2021-06-21 18:28:37 +07:00
ANR2ME eda0e3e250 Reducing HLE delays on Adhoc-related syscalls that can be called more than once on a single frame. 2021-06-07 12:01:25 +07:00
ANR2ME 2d71ac9a7f Reducing HLE delays on socket-related syscalls since we are using real network which already have it's own overhead. 2021-06-07 11:59:51 +07:00
ANR2ME dada18573a Minor changes to Adhoc's Verbose Logs returning error code. 2021-06-07 11:06:28 +07:00
ANR2ME 7a06103cc6 Create GameMode's socket after Master and all Replicas have been created so we will know the largest buffer size. 2021-05-31 04:37:09 +07:00
ANR2ME 8dcfed0385 Show Port Offset value too when detecting Data coming from incorrect port. 2021-05-16 13:16:20 +07:00
ANR2ME d5177e33b9 Fix possible crash issue on blocking socket implementation. 2021-05-16 12:55:55 +07:00
Henrik RydgårdandUnknown W. Brackets f4a6d291e1 Common: Capitalize setCurrentThreadName(). 2021-04-30 23:02:36 -07:00
ANR2ME 8742a49e07 Replacing the inconvenient prefix string for indentation with indent number. 2021-04-19 06:14:28 +07:00
ANR2ME 7a8448614b Fix crashing issue when leaving a multiplayer game room #14337 2021-04-04 02:08:12 +07:00
ANR2ME 206ab4345e Attempts to reconnect to Adhoc Server only when Creating/Joining/Connecting to a group or Scanning for groups, instead of on 2 seconds interval. 2021-04-02 12:19:02 +07:00
ANR2ME 7336ec6a81 Shows PSP error code as hex to be easier to find 2021-04-02 12:19:01 +07:00
ANR2ME b7309559e8 Fix FlatOut Head On multiplayer. 2021-03-14 03:50:37 +07:00
Henrik Rydgård 42186e8e9e Warning fix, memleak fix 2021-03-11 23:28:02 +01:00
ANR2ME 620e003c10 Removing TCPNoDelay option from Networking Settings and always enable it to improve response time. 2021-03-01 01:45:28 +07:00
ANR2ME 758fb12fc3 Making sure there are no warnings related to deprecated inet_ntoa function 2021-03-01 01:45:27 +07:00
ANR2ME 4ee08ef73b Making sure the port is bound to an interface when using bind with INADDR_ANY. Seems to fix #14130 2021-02-21 20:05:50 +07:00