Commit graph

4767 commits

Author SHA1 Message Date
ANR2ME
2e9952cf6e Prevent spamming the log too much on some games 2020-09-11 07:19:03 +07:00
ANR2ME
c57d81cc3e Fixed sceNetAdhocMatchingGetMembers error return value 2020-09-11 07:19:03 +07:00
ANR2ME
82a064adcf Resolve Adhoc Server DNS early and cache it so we don't need to resolve it again later. 2020-09-10 12:00:30 +07:00
ANR2ME
2affbb850c Stop waiting for connection on Exit to Menu to prevent causing lags. 2020-09-10 12:00:30 +07:00
ANR2ME
97e5a1f447 Combining PDP and PTP socket's array into a union array. Fixes Hot Shots Tennis that doesn't works well with socketId > 255 2020-09-09 14:21:32 +07:00
Henrik Rydgård
cf43f2d57f
Merge pull request #13335 from unknownbrackets/plugins2
Support for loading game-specific plugins
2020-09-08 20:10:45 +02:00
Unknown W. Brackets
ac7522b0dd Plugins: Schedule plugins before game thread. 2020-09-08 09:31:09 -07:00
Unknown W. Brackets
2f4945aad8 Plugins: Oops, typo. 2020-09-08 09:12:19 -07:00
Unknown W. Brackets
e383b0279f Plugins: Support for loading game-specific plugins. 2020-09-08 09:12:19 -07:00
Unknown W. Brackets
8c80a97807 Module: Split out module start to use externally. 2020-09-08 09:12:19 -07:00
Henrik Rydgård
40272ff403
Merge pull request #13405 from ANR2ME/net_blocking
Allow blocking socket simulation on multiple threads simultaneously
2020-09-08 17:19:52 +02:00
ANR2ME
57584343a2 Simulate blocking PtpFlush 2020-09-08 19:16:44 +07:00
Henrik Rydgård
10520470d1
Merge pull request #13387 from sum2012/kernel_minor
Imp sceKernelFindModuleByName
2020-09-08 09:10:27 +02:00
ANR2ME
871707c6a7 Allows blocking socket simulation on multiple threads simultaneously 2020-09-08 13:17:52 +07:00
ANR2ME
d8d2fd8107 Making use Adhoc SocketAlert Flags to stop/abort blocking sockets 2020-09-08 13:17:52 +07:00
ANR2ME
20ad57a511 Fixed return value when using Automatic Wlan Channel. Fixes Ridge Racer 2 and Warriors Orochi 2 2020-09-08 10:33:20 +07:00
ANR2ME
87965ca89b Changing default Wlan Channel to 11 on Automatic to be the same with real PSP 2020-09-08 10:33:20 +07:00
ANR2ME
824beb7232 Prevent sceNetGetMallocStat from spamming Info Logs 2020-09-08 10:33:20 +07:00
Unknown W. Brackets
fcaef648ec Net: Fix memory corruption on save old state.
Can't restore these if they're not inited either.
2020-09-07 07:23:13 -07:00
Unknown W. Brackets
b5712efdfb Net: Correct save state from old loaded state.
Fixes #13395.
2020-09-07 07:11:33 -07:00
Henrik Rydgård
55ca5ab1d7
Merge pull request #13393 from ANR2ME/adhocctl_fix
Adhocctl fix - Fix SceNetAdhocctlParameter structure
2020-09-06 23:24:44 +02:00
ANR2ME
6a2de8647f Fixed SceNetAdhocctlParameter structure 2020-09-07 03:38:47 +07:00
ANR2ME
b1d6f6aa48 Added some more info in Debug Log to help debugging 2020-09-07 03:38:45 +07:00
ANR2ME
69b3c788eb Ignore SIGPIPE error on certain system (ie. Linux) 2020-09-07 02:38:45 +07:00
ANR2ME
c2a4d56430 An attempt to implement AdhocSocketAlert 2020-09-06 11:12:04 +07:00
ANR2ME
ff6b466eff Oops forgot to replace these numbers with const on adhoc socket reindexing PR 2020-09-06 05:53:16 +07:00
sum2012
d0f18cbbe5 Imp sceKernelFindModuleByName
#13204
2020-09-05 22:02:47 +08:00
Henrik Rydgård
5f1e3b2950
Merge pull request #13383 from ANR2ME/adhocctl_fix
Adhocctl Fix - Valhalla Knights 2
2020-09-05 10:07:33 +02:00
Henrik Rydgård
46208f8724
Merge pull request #13384 from ANR2ME/adhocmatching_fix
AdhocMatching Timeout Fix - Phantasy Star Portable 2 Timeout issue
2020-09-05 10:06:44 +02:00
Henrik Rydgård
75e55d5368
Merge pull request #13385 from ANR2ME/adhoc_socket
Adhoc Socket Reindexing - Fix Crash issue due to out of bound when indexing
2020-09-05 10:06:06 +02:00
ANR2ME
00d2b488dd Reindexing PDP and PTP socket using const/var instead of using confusing raw numbers 2020-09-05 13:44:35 +07:00
ANR2ME
19cc81fe91 Fix crash issue due to out of bound when indexing PDP socket 2020-09-05 13:17:20 +07:00
sum
37737ceaa1
Add draft sceKernelFindModuleByUID (#13380)
* Add draft sceKernelFindModuleByUID

#13205

* Add KERNEL_SYSCALL flag

* oop

* oop2

* Not sure why make this change before

* Last night I might be too tried
2020-09-05 07:29:56 +02:00
ANR2ME
e79d3b8204 Fix Phantasy Star Portable 2 Timeout issue 2020-09-05 11:45:14 +07:00
ANR2ME
423a7b2391 Fix multiplayer on Valhalla Knights 2 2020-09-05 08:58:29 +07:00
ANR2ME
c564e77b9f Fix AdhocMatching P2P Mode. This fix Bleach Heat the Soul 7 2020-09-04 16:08:07 +07:00
ANR2ME
170d313fa7 Minor changes to make sure the output struct/arg have similar value to the one from prx file (based on Kingdom Hearts BBS) 2020-09-04 13:09:46 +07:00
ANR2ME
d3157205dd Don't allocate PSP's Memory during DoState 2020-09-04 13:09:45 +07:00
ANR2ME
a05da1a8c5 Fix communication issue with Adhoc Server where ping to the Adhoc Server sometimes getting socket error 10053 and disconnected from Adhoc Server 2020-09-04 13:09:45 +07:00
ANR2ME
97904d7149 Fix possible stalled thread when PPSSPP closed down 2020-09-04 13:09:44 +07:00
ANR2ME
439171fc56 An attempt to reduce the lags/stutters during multiplayer caused by improper blocking behavior. 2020-09-04 13:09:44 +07:00
ANR2ME
6a9cf0f575 An attempt to differentiate adhoc connect, create, and join. 2020-09-04 13:09:44 +07:00
ANR2ME
db3e7d80d9 Oops we already have local mac stored in context, no longer need to getLocalMac again 2020-09-04 08:35:40 +07:00
ANR2ME
5155925516 Fix connection issue on games using AdhocMatching due to sometimes events are removed prematurely before being processed. This fix Gran Turismo where some peers could permanently be in "busy data" state. 2020-09-04 02:39:00 +07:00
ANR2ME
d99f55465e Fixed possible crash issue due to lingering leftover callback events from previous multiplayer session. 2020-09-04 02:39:00 +07:00
ANR2ME
7083342046 Avoid using hleLog during a Shutdown 2020-09-04 02:38:58 +07:00
ANR2ME
804dd07c93 An attempt to sort AdhocMatching Member List in order to make a consistent list on all players (based on Host). Also fixed some disconnection issue on other players when a player is leaving the room on Gran Turismo and Patapon 3. 2020-09-04 01:32:15 +07:00
ANR2ME
405863c579 An attempt to make PDP and PTP ID to be unique so they can be polled properly together without getting conflicted ID. This fixes Gran Turismo. 2020-09-03 05:27:51 +07:00
ANR2ME
577209752e An attempt to fix sceNetAdhocPollSocket to works properly. This fixes one of the multiplayer mode on Bleach Heat the Soul 7 2020-09-03 05:17:44 +07:00
ANR2ME
ca059bc962 Making sure the 1st 2-bits on the 1st byte of MAC address' OUI are zero to prevent issue with some games (ie. Gran Turismo) 2020-09-03 05:17:42 +07:00