Commit Graph

392 Commits

Author SHA1 Message Date
Henrik Rydgård 4aaf44dd02 Warning fixes 2025-09-02 13:26:04 +02:00
Henrik Rydgård 3e2dce1e54 Move AdHoc error codes to the big enum, fix the naming convention to be consistent 2025-08-06 17:44:54 +02:00
Nemoumbra c7aafd4cbe Deduplicated a config variable 2025-07-02 01:30:21 +03:00
Nemoumbra c4dafe28b0 g_adhocServerConnected moved to NetAdhocCommon 2025-07-01 23:57:30 +03:00
Nemoumbra 9e03358283 moved matching threadhackaddr to NetAdhocCommon, reordering & cleanup 2025-07-01 19:56:09 +03:00
Nemoumbra 921fd32969 8 vars moved to NetAdhocCommon, 1 var moved to sceNetAdhocMatching 2025-07-01 19:56:09 +03:00
Nemoumbra d3d00d7d7b Start moving general adhoc stuff out of sceNetAdhoc 2025-07-01 19:56:09 +03:00
AdamN 4a0ae39293 Fixed truncated adhoc group name issue. 2025-04-13 21:01:26 +07:00
AdamN fe71a10945 Let's not changed the SO_LINGER time, since RST signal can be faster than incoming data, thus could lost the data. 2025-04-13 16:15:05 +07:00
Henrik Rydgård da7c99a585 sceNetInet: Implement per-thread errno. Reduce some log levels 2025-04-08 08:31:09 +02:00
Henrik Rydgård 4e25f44eef Rename some module-related functions to include HLE where appropriate 2025-03-31 11:17:50 +02:00
Henrik Rydgård cf059ff84c Stub a lua console, add the sol lua wrapper library 2025-03-27 08:59:37 +01:00
Henrik Rydgård 0f840e6240 Move JPEG error codes to the big enum, some include cleanup 2025-03-21 20:44:46 +01:00
Henrik Rydgård 0f9c97c2a0 Another big batch of logging cleanup 2025-03-05 17:02:46 +01:00
Henrik Rydgård 7e3e944e3b Update GetSecondBufferInfo 2025-03-05 17:02:46 +01:00
Henrik Rydgård 948c38a034 Some more minor fixes 2025-02-04 10:24:55 -06:00
Henrik Rydgård 8f0b64c4eb Minor fix (N1) 2025-02-04 10:19:34 -06:00
Henrik Rydgård 28b2c7f540 HLE log rename part 1: Remove duplicate log functions. Return type should be determined by metadata. 2025-01-29 09:45:39 +01:00
Henrik Rydgård 9f8d21e7b8 Add some more debugger windows and info for networking stuff 2025-01-21 12:22:32 +01:00
Henrik Rydgård 5d124d93f8 Make network connection detection (for pause screen purposes) a bit more strict. 2025-01-21 12:22:29 +01:00
Henrik Rydgård 58f336f64d Infrastructure: Only connect to adhoc server if connect_adhoc_for_grouping is set in the json 2025-01-20 20:58:22 +01:00
Henrik Rydgård c7078f31fd Rename "networkInited" to g_adhocServerConnected, which is what it is 2025-01-20 20:58:22 +01:00
Henrik Rydgård e24317b20b A lot more logging fixes 2025-01-20 12:20:21 +01:00
Henrik Rydgård 7d2ad6980e Another batch of changes 2025-01-20 12:20:21 +01:00
Henrik Rydgård 2523690584 Flip around so sceDelayResult is always outermost. Start using HLECall. 2025-01-20 12:20:18 +01:00
Henrik Rydgård 2e68d4f638 Clean up a lot of logging in psmf, audio, more 2025-01-19 13:56:51 +01:00
Henrik Rydgård 5316ec7ef7 Fix more misuse of the hleLog* functions 2025-01-19 13:09:30 +01:00
Henrik Rydgård 28d8faef3a Integrate the sceUtility DNS query with the auto conf system, minor cleanups 2025-01-13 12:31:02 +01:00
Henrik Rydgård 885724db83 Add comments (checked that no other host socket numbers leak to the game) 2025-01-10 14:54:45 +01:00
AdamN 1da23507c4 Allow Adhocctl to be initialized even when WLAN is disabled 2025-01-09 13:31:45 +07:00
Henrik Rydgård c3aa0f7452 Centralize socket-related includes, introduce socket_errno
This resolves some weird inconsistentes and include order problems
related to errno. Needed for the next steps.
2025-01-08 12:42:45 +01:00
Henrik Rydgård 1c16c31b49 Log level tweaks, fix dodgy string tricks that failed the memory sanitizer 2025-01-06 17:51:59 +01:00
Henrik Rydgård 40e6e03ed5 Transfer some more Apctl functionality 2025-01-06 15:02:00 +01:00
Nemoumbra 60e502c259 Restored the order of HLE module registration 2025-01-03 23:33:09 +03:00
Nemoumbra 96f9749e2e Split out the matching code from sceNetAdhoc.cpp 2025-01-03 04:59:26 +03:00
Henrik Rydgård 660a1f76b8 Despam some OSD messages 2024-12-17 20:22:58 +01:00
Henrik Rydgård 59a56d66c7 Add a "reason" argument to sleep_ms().
sleep_ms() should generally be avoided when possible. This can be used to try
to track down unnecessary sleeps by adding some logging.

This commit on its own doesn't actually add any logging.
2024-11-21 15:28:51 +01:00
AdamN 73cf77940d Merge branch 'master' into adhoc_matching 2024-09-18 07:36:38 +07:00
Herman Semenov 3c66f149d3 [Common/Core/Windows] Removed excess check pointer before delete or free() 2024-09-17 11:34:42 +02:00
Henrik Rydgård 5926886c0c Some include cleanup, delete some obsolete code 2024-07-25 14:52:41 +02:00
Henrik Rydgård e01ca5b057 Logging API change (refactor) (#19324)
* Rename LogType to Log

* Explicitly use the Log:: enum when logging. Allows for autocomplete when editing.

* Mac/ARM64 buildfix

* Do the same with the hle result log macros

* Rename the log names to mixed case while at it.

* iOS buildfix

* Qt buildfix attempt, ARM32 buildfix
2024-07-14 14:42:59 +02:00
AdamN 9e8e43f7b7 Update NetAdhocPtp_Close 2024-06-29 00:46:44 +07:00
AdamN 2222254f3e Update NetAdhocPdp_Delete 2024-06-29 00:44:51 +07:00
Henrik Rydgård 23a253dbb5 Fix connected check 2023-12-30 21:50:22 +01:00
Henrik Rydgård 8228e59423 Check if multiplayer if connected, enforce run-behind if so 2023-12-30 21:50:22 +01:00
Herman Semenov af41281761 [Core/Dialog/ELF/FileSystems/HLE/HW/Util] Added const reference for function params 2023-12-14 14:22:24 +03:00
AdamN c6628ee55c An attempt to fix Tekken 6 stuck issue when exiting Lobby 2023-11-20 19:36:26 +07:00
ANR2ME 2f3e9073f6 Process incoming packets quicker whenever available to handle more than 2 players better, instead of one datagram message per 10ms sleep interval which will delay the event generated from the message by 10ms for each additional player. 2023-10-13 01:53:07 +07:00
ANR2ME f4c2967969 Checks timeout before Pinging instead of on each message loop to give time for other event to occurs before timeout event. 2023-10-13 01:19:24 +07:00
ANR2ME 88f367f502 Process event messages quicker to prevent event queue from piling up when there are more players. Might also improve the success rate of joining process on Def Jam Fight for NY. 2023-10-13 00:21:55 +07:00