Commit Graph
114 Commits
Author SHA1 Message Date
ANR2ME 30ea1087dd Attempt to fix an issue when the 3rd player joined causing problem to other players on Patapon 3 (this may also affects other games that use AdhocMatching) 2020-07-25 11:48:19 +07:00
ANR2ME 2f44495654 Added more info to AdhocMatching Logs to get a better insight 2020-07-25 11:48:18 +07:00
ANR2ME 87b712450f Locking before changing peer linked list order, just to be safe. 2020-07-24 14:46:40 +07:00
ANR2ME 581ba6c326 Added target/destination IP & port of sceNetAdhocPtpConnect in the log to get better insight 2020-07-24 08:28:42 +07:00
ANR2ME 5153b60637 Fix some logs text 2020-07-24 08:07:01 +07:00
ANR2ME c8ea017e8c Fix an issue where a player got disconnected when another player tries to join.
This should affects games that use AdhocMatching such as Patapon 3
2020-07-24 07:59:40 +07:00
ANR2MEandHenrik Rydgård a3b21b04ea Making mac2str function easier/cleaner/safer to use for logging purpose 2020-07-23 12:41:13 +02:00
ANR2MEandHenrik Rydgård bd36fdda0e Do UPnP stuff on it's own thread to prevent causing stutters/lags during multiplayer game due to blocking socket behavior on miniUPnP 2020-07-23 12:41:13 +02:00
ANR2MEandHenrik Rydgård d078a73278 Need to make sure already connected to Adhoc Server before Creating/Joining a group. (Fix GTA VCS failed to join a group and unable to see any room) 2020-07-23 12:09:39 +02:00
ANR2MEandHenrik Rydgård a0f0973462 Reconnect to Adhoc Server when disconnected while still having the AdhocCtl Inited (ie. due to timeout or network failure) so players doesn't need to reset the game to reconnect. 2020-07-23 12:09:28 +02:00
ANR2MEandHenrik Rydgård 6695001b94 Fix timeout comparison 2020-07-22 23:13:41 +02:00
ANR2MEandHenrik Rydgård df26845388 Minor fixes 2020-07-22 23:13:41 +02:00
ANR2MEandHenrik Rydgård 1d30a9efec Fix possible crash issue during Networking Cleanup 2020-07-22 23:13:41 +02:00
ANR2MEandHenrik Rydgård 65bc68609c Added an option to Disable Nagle Algorithm (Enable TCP No Delay) 2020-07-22 23:13:41 +02:00
ANR2MEandHenrik Rydgård b9025b50bd Added a UPnP option to use original port for external port instead of using the shifted port by port offset, to be compatible with real PSP or other PSP emulators 2020-07-22 23:13:41 +02:00
ANR2MEandHenrik Rydgård 3e2266e1c4 Making sure there are no warnings on adhoc code when building on android studio 2020-07-22 22:31:05 +02:00
ANR2MEandHenrik Rydgård 2ca6a4f0d7 Fixed GvG Next Plus, Phantasy Star Portable 2, and some minor changes 2020-07-22 22:22:59 +02:00
ANR2MEandHenrik Rydgård 8daf2ff66e Added UI to change WLAN Channel.
Currently Ridge Racer 2 doesn't works with Auto channel (TODO: Making sure sceUtilityGetSystemParamInt doesn't returns channel 0 when connected to a network for Ridge Racer 2 to works with Auto channel)
2020-07-22 16:46:39 +02:00
ANR2MEandHenrik Rydgård 33d3ac28de Added UPnP Support
Fix i18n type
2020-07-21 23:02:58 +02:00
ANR2MEandHenrik Rydgård 0d0ccf3b73 Making sure Adhoc codes doesn't have compilation warnings 2020-07-20 19:13:18 +02:00
ANR2MEandHenrik Rydgård b58f4a6e90 Enabling KeepAlive on sockets 2020-07-20 19:13:10 +02:00
ANR2MEandHenrik Rydgård c783aaf40d Increasing the extra delays on Adhoc's callbacks just to be on the safe side, also decreasing the default network's timeout to be noticed sooner 2020-07-20 19:13:05 +02:00
ANR2MEandHenrik Rydgård fa36c2edab Improved multiplayer stability regardless of I/O Timing method 2020-07-20 19:12:55 +02:00
ANR2MEandHenrik Rydgård d8186a8330 Fix i18n type 2020-07-20 18:20:06 +02:00
ANR2MEandHenrik Rydgård fb7d50e5c2 Improved multiplayer compatibility on some games (ie. GTA VCS, Naruto Ultimate Ninja Heroes 3, DBZ Shin Budokai 2, Power Stone Collection, .hack//Link, etc) 2020-07-20 18:09:16 +02:00
ANR2MEandHenrik Rydgård da5b54e630 Separate each AdhocMatching callback's buffer, since callback aren't immediately executed thus using shared memory address may corrupt previous data 2020-07-20 12:19:40 +02:00
ANR2MEandHenrik Rydgård 4f3b473f29 Making sure adhoc callbacks runs on AdhocThread 2020-07-20 12:18:28 +02:00
ANR2MEandHenrik Rydgård a35acdee43 Oops forgot to change this also for multiple-instance to work properly 2020-07-20 10:03:09 +02:00
Unknown W. Brackets 1fc755f267 NetAdhoc: Match init/term behavior better. 2020-03-15 11:37:12 -07:00
Unknown W. Brackets f244b390ae Kernel: Kernel threads can beget kernel threads.
Fixes #7687.
2019-03-23 12:05:06 -07:00
Unknown W. Brackets a652617ba0 Adhoc: Remove incorrect thread create param.
This was the options pointer, not the attr, so was always generating an
error (which was also reported.)  Also, we don't support kernel threads in
any real way, so let's just not pass the flag at all.

Same behavior as before, less the spurious error.
2017-12-01 09:25:21 -08:00
twinaphex a9bf8e7b18 More mingw patches pt. 2 2017-08-29 22:41:50 +02:00
Henrik Rydgard 26a2d42731 Big mutex overhaul - remove our custom ones, make them non-recursive where possible 2017-02-28 11:40:29 +01:00
Henrik RydgårdandGitHub 923d82c391 Merge pull request #8975 from tywald/master
Ad hoc: Band-aid fix for clear peer list. Should fix #7331
2016-11-28 18:37:50 +01:00
Ade Novan 55de66b5ef Phantasy Star Portable 2 port offset fix 2016-11-22 19:57:11 +08:00
tywald b3bb846759 band-aid fix for ad-hoc clear peer list 2016-09-13 17:07:45 +02:00
Unknown W. Brackets fd546ff21d Fix some type comparison warnings. 2016-08-05 10:47:45 -07:00
sum2012 bbeaf67cd6 Support port offset by @ANR2ME
Useful of adhoc of non-windows
2016-01-24 16:52:39 +08:00
latot e82620c572 remove
remove
2016-01-16 09:32:39 -03:00
latot 53ac6d98d8 Little things
back 1

other little change, join 2 in 1
2016-01-09 20:44:02 -03:00
Unknown W. Brackets 7b217af59e Net: don't double-delete thread on shutdown.
Prevents spurious logging / reporting.
2015-12-31 11:19:28 -08:00
Henrik Rydgard 1c67de0c21 We don't need a third set of sized integer typedefs, get rid of it. 2015-09-06 19:10:08 +02:00
Unknown W. Brackets afe52db366 Fix some issues in sceNetAdhoc with old savestates.
This was causing the PPGe dlist to be shared with the thread, causing
weirdness and a double-free on exit.
2015-04-27 07:53:19 -07:00
Unknown W. Brackets 0847d46b79 Remove always-true condition.
It was only for logging anyway, can't be that important.
2015-04-08 12:15:41 -07:00
Unknown W. Brackets 2450724be2 Make Memory::Memcpy() execute memchecks directly.
This makes it easier to handle breakpoints in HLE.
2015-04-05 18:09:20 -07:00
Unknown W. Brackets fcf0518223 Update all the HLE tables with arg and ret info. 2015-03-22 20:51:55 -07:00
Unknown W. Brackets dad8f5cd25 Fix a bad pointer dereference / cast. 2015-03-10 10:56:09 -07:00
ChinandHenrik Rydgard 22593cddcc Use pre-increment instead of post-increment for iterators, and use auto for some iterators 2015-03-01 16:55:47 +01:00
Henrik Rydgård 7b2f05d0a0 Merge pull request #7270 from Bigpet/adhocthread
don't use Thread* to create thread
2015-01-04 20:34:19 +01:00
Peter Tissen a7d9370a69 don't use Thread* to create thread
slightly less hacky, as in, a little bit closer to what the actual PSP does, although the timings are still complete guesses

also

* Protect the adhoc Events by a mutex lock
* don't use emplace_back since symbian doesn't compile with it
2015-01-04 18:58:42 +01:00