Unknown W. Brackets
8f96405ee5
Net: Remove usage of Memory::WriteStruct().
...
This also validates pointer write size better.
2022-09-03 10:44:11 -07:00
Henrik Rydgård
e6403d7157
Split GetPointer into two versions, to help with const correctness
2022-07-24 13:26:19 +02:00
ANR2ME
6d1a069248
Added another returned error code on PdpCreate
2021-12-08 08:45:46 +07:00
Unknown W. Brackets
82087ccbb7
Common: Reduce some log levels.
...
Take off a few messages during startup and shutdown.
2021-08-28 09:14:53 -07:00
ANR2ME
951080991a
Forgot to return on invalid address, and moving reusable code out of HLE to prevent generating confusing logs
2021-04-05 04:56:11 +07:00
ANR2ME
89ca70a141
Ooops wrong way to do random range
2021-04-05 04:44:29 +07:00
ANR2ME
9e64eed432
minor fix
2021-04-05 04:44:29 +07:00
ANR2ME
824fedbef6
Randomize signal strength between 1%~99% since games like MGS:PW are using signal strength to determine the strength of the recruit
2021-04-05 04:44:28 +07:00
ANR2ME
cc40d294ac
Fix stuck issue when scanning AP for Recruit on MGS:PW
2021-04-05 04:44:28 +07:00
ANR2ME
7336ec6a81
Shows PSP error code as hex to be easier to find
2021-04-02 12:19:01 +07:00
M4xw
4cc322466a
Switch: Workaround several missing toolchain defs.
2021-03-04 21:24:57 -08:00
ANR2ME
758fb12fc3
Making sure there are no warnings related to deprecated inet_ntoa function
2021-03-01 01:45:27 +07:00
Unknown W. Brackets
f7740edc6d
Debugger: Add more metadata for memory usage.
2021-02-15 15:01:21 -08:00
Henrik Rydgård
93fd62f54b
Merge pull request #13832 from unknownbrackets/events
...
SaveState: Make event restoring more obvious
2021-02-15 23:39:42 +01:00
ANR2ME
0ce2c2c6e9
Windows recvfrom doesn't support MSG_TRUNC, so we're using dummy buffer with max size as alternative for peeking actual size of the next pending message.
2021-02-11 07:40:35 +07:00
ANR2ME
f17d387a65
Updated some Logs to help finding the location of the call to debug.
2021-02-07 12:08:02 +07:00
Unknown W. Brackets
06f8ab5a49
SaveState: Make event restoring more obvious.
...
We still must restore all events, but everything can be taken care of
during the save state load.
2020-12-28 13:29:19 -08:00
ANR2ME
6e50487fcd
Updated error code on sceNetGetLocalEtherAddr
2020-10-29 06:00:13 +07:00
ANR2ME
f597382619
Show a warning just in case an abnormal situation occurred.
2020-10-19 23:32:09 +07:00
ANR2ME
59e2bab7ec
Added some network-related missing error codes.
2020-10-11 09:57:56 +07:00
ANR2ME
d628eb2ebd
Fix Falcom games (ie. Ys vs. Sora no Kiseki, Vantage Master Portable)
2020-10-09 23:45:12 +07:00
ANR2ME
8a96112e1a
Fix Apctl and Adhocctl state change timings to works properly. Which fix the stuck MessageBox on Naruto Shippuden Ultimate Ninja Heroes 3 and .hack//Link properly.
2020-10-09 23:37:35 +07:00
Henrik Rydgård
4f43cff5ca
Move fileutil, net, image loaders, ui to Common. ( #13506 )
...
* Move and rename file_util/fd_util to Common/File/FileUtil and DirListing
Let's also move net while we're at it.
Move the ZIM/PNG loaders over to Common.
Move the UI framework into Common
iOS buildfix
* Buildfix
* Buildfixes
* Apple buildfix
* This typo again..
* UWP buildfix
* Fix build of PPSSPPQt, such as it is (it's not in good condition...)
* Guess what? Another buildfix.
2020-10-04 20:48:47 +02:00
Henrik Rydgård
ff8148dd92
Move native/util, native/data and native/i18 to Common/Data.
...
Also move colorutil.cpp/h
linking build fix experiment
Delete a bunch of unused CMakeLists.txt files
CMakeLists.txt linking fix
Don't include NativeApp.h from any headers.
Android.mk buildfix
Half of the UWP fix
Buildfix
Minor project file cleanup
Buildfixes
Guess what? More buildfixes!
2020-10-04 07:28:29 +02:00
ANR2ME
4f76f2415d
Prevent sceNetGetMallocStat from spamming debug log on some games.
2020-09-23 04:30:14 +07:00
ANR2ME
8d68e917b7
Prevent Client side from forever re-trying to connect to Exited Host on Shin Sangoku Musou Multi Raid 2
2020-09-14 03:38:20 +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
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
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
ANR2ME
b1d6f6aa48
Added some more info in Debug Log to help debugging
2020-09-07 03:38:45 +07:00
ANR2ME
d3157205dd
Don't allocate PSP's Memory during DoState
2020-09-04 13:09:45 +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
d99f55465e
Fixed possible crash issue due to lingering leftover callback events from previous multiplayer session.
2020-09-04 02:39:00 +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
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
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
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
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
Unknown W. Brackets
4b4e3432cd
SaveState: Split Do() into a separate header.
2020-08-10 08:03:41 +00:00
ANR2ME
5de2707633
Fix crashes issue due to 0 is a valid index to types_, using invalid index like -1 should give a better/clearer stack trace
2020-08-02 14:02:49 +07:00
ANR2ME
8886291434
Save&Restore PSP Thread IDs to prevent using the wrong Thread ID after loading from save state, also making sure DoState have default value
2020-08-02 12:57:27 +07:00
ANR2ME
90ff382c59
Rearranged network's After PSPAction creation/registration so that newer one have higher value to prevent network's callbacks triggering the wrong after action after loading from old save state.
2020-08-02 08:49:58 +07:00
ANR2ME
f927ca795c
Added a fake thread to process Apctl Request Events into Apctl State Changes
2020-07-29 02:27:39 +07:00
ANR2ME
eda5774408
Added more stub for some unimplemented sceNetApctl* functions
2020-07-27 19:51:01 +07:00