Commit graph

4578 commits

Author SHA1 Message Date
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
ANR2ME
9c5f02fbf5 Default to P2P/Parent's MAC address if the target MAC on sceNetAdhocMatchingSendData is 00:00:00:00:00:00 (need to confirm whether this is correct or an error should be returned instead) 2020-09-02 21:17:38 +07:00
ANR2ME
a76a5bdf56 Ignores the 1st byte of MAC address when comparing, since there might be games (ie. Gran Turismo) that tries to tamper/change the 1st byte during multiplayer upon use. 2020-09-02 21:17:38 +07:00
sum2012
f5937d0c6a Use >= 0x03080000 instead of 0x0307FFFF 2020-09-02 20:31:06 +08:00
sum2012
f13c69a0e1 Add a check in sceKernelTerminateThread
https://github.com/jpcsp/jpcsp/blob/master/src/jpcsp/HLE/modules/ThreadManForUser.java#L3971
2020-09-02 20:26:45 +08:00
shenweip
8b5530e626 Reschedule after resuming thread from suspend. 2020-09-01 19:10:57 +08:00
sum2012
000c20ee44 Add a check in sceKernelTerminateDeleteThread
https://github.com/jpcsp/jpcsp/blob/master/src/jpcsp/HLE/modules/ThreadManForUser.java#L3998
2020-08-30 17:44:17 +08:00
shenweip
0f45e17f09 Only clear when initializating kernelMemory and userMemory. 2020-08-29 19:51:11 +08:00
Henrik Rydgård
26ba65f385 Some minor logging improvements that get to tag along the previous commit 2020-08-22 00:32:51 +02:00
Unknown W. Brackets
d7fa5928d4 Kernel: Avoid two different Heap structs. 2020-08-19 20:56:05 -07:00
ANR2ME
0298f59fd5 Avoid using getaddrinfo during initialization as it could blocked the thread if there is no network 2020-08-19 12:33:20 +07:00
Henrik Rydgård
0752e7d158
Merge pull request #13302 from unknownbrackets/net-local
Net: Simplify local IP lookup and cleanup instance counter a bit
2020-08-18 21:29:29 +02:00
Unknown W. Brackets
1e2a904fb7 Audiocodec: Fix warning on older clang. 2020-08-18 07:21:11 -07:00
sum2012
3f6c80fb07 Small mistake in sceKernelExitDeleteThread
oop
2020-08-18 21:22:12 +08:00
sum2012
80283d3230 Add a check in sceKernelExitDeleteThread 2020-08-18 21:03:45 +08:00
Henrik Rydgård
d8334ba66f
Merge pull request #13301 from hrydgard/more-gl-state-leaks
More GL state leak fixing
2020-08-18 12:58:13 +02:00
Henrik Rydgård
5313fc5b36 More work on GL state leaks. Some things really need a redesign. 2020-08-18 09:18:24 +02:00
Unknown W. Brackets
4d307be2b2 Net: Simplify local IP lookup. 2020-08-17 23:34:29 -07:00
Unknown W. Brackets
a89840f309 Net: Cut down on local IP aliasing. 2020-08-17 23:08:35 -07:00
sum2012
35c05ef064 Use ppsspp error name 2020-08-18 06:42:55 +08:00
sum2012
dfad6cd479 oop 2020-08-17 23:18:12 +08:00
sum2012
df1f126715 Fix sceKernelExitThread
fix #13297 fix #9523
According from
https://github.com/jpcsp/jpcsp/blob/master/src/jpcsp/HLE/modules/ThreadManForUser.java#L3924
2020-08-17 23:16:15 +08:00
Henrik Rydgård
c0dffd56aa Log the first 100 block transfers instead of just the first one. Should make it easier to spot interesting things without hacking the log code. 2020-08-16 22:38:15 +02:00
Henrik Rydgård
1ee70c1bcf Buildfix 2020-08-16 15:05:44 +02:00
Henrik Rydgård
5d64fc5ff1 Switch to PPSSPP's assert functions (don't use the system's) 2020-08-16 10:01:10 +02:00
Henrik Rydgård
80aa527f1a
Merge pull request #13288 from hrydgard/move-timeutil
Move timeutil to Common. (Experiment to see how much work it is to move these).
2020-08-15 23:44:23 +02:00
Henrik Rydgård
761ea58fb8 Merge branch 'cmake' of https://github.com/Kingcom/ppsspp into Kingcom-cmake 2020-08-15 21:35:46 +02:00
Henrik Rydgård
ccc0331279 Move timeutil to Common. (Experiment to see how much work it is to move these). 2020-08-15 20:53:08 +02:00
Henrik Rydgård
b43698a13d Remove most instances of base/logging.h from Common, Core, GPU, more 2020-08-15 19:08:44 +02:00
Henrik Rydgård
0fcc0994b4 Recategorize some logging, in preparation for what's to come. 2020-08-15 11:51:22 +02:00
sorgts
a8a1c67df0 Fix build with clang-cl 2020-08-13 16:48:48 +02:00
ANR2ME
bd36b9dff1 Shows AdHoc and Access Point Connecting... Dialog 2020-08-13 00:59:50 +07:00
ANR2ME
8dec09703f Moving reused adhoc function out of sceNet function to prevent getting extra SCENET log 2020-08-13 00:59:50 +07:00
ANR2ME
2620957aba An attempt to simulate a fake PSN authentication on Patapon 3 2020-08-12 21:16:01 +07:00
ANR2ME
92db25e486 Renaming sceNp* NIDs functions to their proper function names. 2020-08-12 20:27:03 +07:00
Henrik Rydgård
27c059bf9e Really no need to call clear() in the constructor for AudioChannel.
However if this helps #13271, something is very wrong...
2020-08-12 00:22:54 +02:00
Henrik Rydgård
14532847c7 Fix some minor issues found by address-sanitizer on Linux 2020-08-11 22:28:36 +02:00
Unknown W. Brackets
b8342fb8ec SaveState: Rename ChunkFile files to Serialize.
Makes more sense and less weird than ChunkFileDoMap, etc.
2020-08-10 08:04:05 +00:00
Unknown W. Brackets
1dc5ee424b SaveState: Split out Do types to reduce headers. 2020-08-10 08:03:44 +00:00