Commit Graph
45 Commits
Author SHA1 Message Date
Katharine Chui 435033e439 Avoid frame pacing issues with SDL_GetPowerInfo on linux
SDL_GetPowerInfo on linux asks upower through dbus for power
information, which can block DrawFPS in UI/DebugOverlay.cpp and in
turn the main thread. Run SDL_GetPowerInfo on another thread
instead to avoid the issue.
2026-08-19 01:33:56 +02:00
Katharine Chui c39205496c bring back VulkanContext::SetCbGetDrawSize for linux wayland
It was removed during https://github.com/hrydgard/ppsspp/pull/21982

On Linux Wayland however this can be observed without:
34:25:550 Vulkan/VulkanContext.cpp:1401 I[G3D]: surfCapabilities_.current: -1x-1
34:25:550 Vulkan/VulkanContext.cpp:1406 I[G3D]: surfCapabilities_.current after clamp: -1x-1 min: 1x1 max: 32768x32768 computed: 1x1 cbdraw
2026-08-06 00:29:21 +02:00
Katharine Chui c46c47522a bump aemu_postoffice
- check for remote disconnect during adhoc 'can send?' poll
- cleanup some compile time warnings
2026-07-26 14:43:00 +02:00
Katharine Chui 01849c251e use new aemu_postoffice apis during polling 2026-07-19 11:30:27 +02:00
Katharine Chui ff83e8c896 bump aemu_postoffice
- Make GetPdpStat behave more like in P2P mode
  - Now fetches accumulated ready to be received amount of data
    instead of only the immediate to be received Pdp block
- Make GetPtpStat behave more like in P2P mode
  - Now fetches accumulated ready to be received amount of data
    instead of the size of the next server send block
- Make PtpRecv behave more like in P2P mode
  - Fix block like behavior where whole server send block has
    to be consumed before getting data from the next send block
  - Fix block like bahavior where sender sends in small PtpSend
    calls while receiver receive with less frequent but bigger
    buffer PtpRecv causes bloat(and eventually server kick)
    on relay
2026-07-19 11:30:27 +02:00
Katharine Chui 8b95d96516 bump aemu_postoffice
- Take steps to avoid SIGPIPE being generated on unix platforms
2026-04-16 14:17:21 +02:00
Katharine Chui 64cfac792c fix adhoc server option missing when updating or using local address
Prior to this change, adhoc server option does not render when
g_Config.sProAdhocServer has value, but the hostname is not found
with AdhocGetServerByHost. This can be caused by either updating
from an older version of PPSSPP, or using one of the local
address in the server list.
2026-04-16 12:46:11 +02:00
Katharine Chui f1f6f3d75f fix the warriors in relay mode
The behavior of https://github.com/hrydgard/ppsspp/pull/13967 was
missing in relay mode, adding that back.

Also skips ptp flush in relay mode.
2026-03-19 19:00:08 +01:00
Katharine Chui 0f219edcc9 fix street rider sending pdp packets using wrong pdp dst addresses in relay mode
In P2P mode, this issue was solved by resolving the final IP
address without the first byte. Fix the issue again for relay mode
by resolving the true mac address before sending.

True mac resolving was also added to relay mode ptp connect as a
precaution.
2026-03-17 17:40:31 +01:00
Katharine Chui 6f64663f75 handle relay failure during adhoc pdp seend/recv 2026-03-05 22:50:40 +01:00
Katharine Chui 1875286019 remove extra GetI18NCategory 2026-03-05 22:41:13 +01:00
Katharine Chui 1a86682e84 do not use ptp connection result to check for adhoc relay status
ptp connection failure could also be due to the clinet on the other
side not accepting the connection
2026-03-05 22:34:32 +01:00
Katharine Chui 101789c075 disable adhoc relay retrying after 15 seconds of lack of success 2026-03-05 22:26:16 +01:00
Katharine Chui 1e8e929bd9 shorten relay connection failure OSD message 2026-03-05 19:22:10 +01:00
Katharine Chui 20424bc5bc Handle adhoc relay conection a bit better
- bump aemu_postoffice
  - timeout TCP connection attempts at 5s to not block the library user too much
  - set send and receive buffer sizes after connection to avoid some blocking cases on some platforms with small defaults (windows?)
- pop OSD message when relay connection fails
2026-03-05 19:09:51 +01:00
Katharine Chui eb87c92252 update brazil server name as requested by server owner 2026-03-03 11:31:34 +01:00
Katharine Chui f218138f2e add missing null check during actOnDeathPacket
It is not impossible for deadkid to not be tracked, so we have to
null check that
2026-02-26 13:18:03 +01:00
Katharine Chui 3e11b33e6f coding style fixes
- fix switch case formatting
- use utility function equals to compare strings that can be std::string_view
- do not default initialize strings with ""
2026-02-19 01:14:02 +01:00
Katharine Chui b3b9e90403 expand adhoc server list
Add various data fields and logic to handle:
- automatic adhoc data mode handling
- future UI expension on server list
- future support for automatically downloaded/user provided server list
2026-02-18 19:22:38 +01:00
Katharine Chui 4c0d913d34 Fix FlatOut Head On in aemu_postoffice relay mode
PDP recv with buffer < packet size was not implemented correctly
as far as FlatOut Head On is concerned. Fix relay PDP recv
implementation to report required size without consuming the next
PDP packet so that it behaves like P2P mode does.
2026-02-17 22:23:42 +01:00
Katharine Chui e0f757c79d bump aemu_postoffice
Improve nonblock relay recv operation responsiveness, it helped a
few games on PSP get back to full speed during multiplayer, might
help severely underpowered devices on PPSSPP as well.
2026-02-16 15:15:21 +01:00
Katharine Chui f4be7a990b Fix Driver 76 not creating adhoc sockets
Driver 76 uses sceKernelGetModuleIdList to get a module list
after calling sceUtilityLoadNetModule, then go module by module
with sceKernelQueryModuleInfo to check if at least pspnet_adhoc.prx
was loaded.

Load modules during sceUtilityLoadNetModule, expand success lying
modules to have real names, add adhoc modules to the success lying
list, list lied modules during sceKernelGetModuleIdList.
2026-02-15 22:24:27 +01:00
Katharine Chui 5eb672d674 bump aemu_postoffice
fix a bug in library re-init spotted by hrydgard

https://discord.com/channels/293316141479362560/478294170662862852/1469845794294333451
2026-02-08 03:50:32 +01:00
Katharine Chui 8292cb35cc fix code formatting 2026-02-06 15:00:59 +01:00
Katharine Chui b2e976360c aemu_postoffice: fragment huge ptp send requests in relay mode 2026-02-06 14:50:01 +01:00
Katharine Chui cb279b5ba1 sanitize adhoc recv buffer sizes in relay mode using library defines 2026-02-06 14:49:49 +01:00
Katharine Chui f3e11110ed bump aemu_postoffice
extend max pdp block size, due to user report of the following in
dissidia:

07:53:752 MatchingEven I[SCENET]: HLE\sceNetAdhocMatching.cpp:1188 EventLoop[1]: Matching Event [1=HELLO][00:02:02:02:02:02] OptSize=4696
2026-02-06 11:43:32 +01:00
Katharine Chui e5b9c17c1b aemu_postoffice: do not aggressively write recv buffers
some games lie about buffer sizes, and will crash if the whole
buffer was blindly written
2026-01-26 19:00:42 +01:00
Katharine Chui e3710af3c4 fix dirty pointer deref during relay DoBlockingPdpSend 2026-01-23 16:05:16 +01:00
Katharine Chui 28e0baee5b aemu_postoffice: trim trailing new lines in routed logs, fix log typo 2026-01-23 15:56:42 +01:00
Katharine Chui f1bd8aca34 save g_Config.bServerHasRelay at adhoc startup 2026-01-19 22:32:04 +01:00
Katharine Chui 5aa266934b import aemu_postoffice as a submodule instead 2026-01-19 22:14:51 +01:00
Katharine Chui 6684f032db null check sport in pdp_recv_postoffice 2026-01-16 11:48:25 +01:00
Katharine Chui da1a843377 cleanup port offet logic in relay mode 2026-01-16 11:41:14 +01:00
Katharine Chui 748786e80c update packet relay setting wording, enable relay by default 2026-01-15 21:40:19 +01:00
Katharine Chui f03b6d76b2 code formatting cleanup 2026-01-15 21:05:08 +01:00
Katharine Chui 3c38b5cfe1 rework ptp connect in relay mode, logic cleanup 2026-01-14 00:53:29 +01:00
Katharine Chui 97a3f1df91 implement nonblock ptp connect 2026-01-13 02:13:18 +01:00
Katharine Chui c76226cd0d fix adhoc gamemode in relay mode 2026-01-11 20:58:30 +01:00
Katharine Chui bf30de1527 initial github.com/kethen/aemu_postoffice integration ported from github.com/kethen/aemu 2026-01-11 18:53:54 +01:00
Katharine Chui 59679e846a Fix #19398 , provide native window from sdl2 to eglCreateWindowSurface 2025-12-22 04:02:17 +01:00
Katharine Chui 7bab953c92 verify thread wait type before resuming thread from plugin waiting 2025-06-13 23:29:49 +02:00
Katharine Chui 326448636b Run module_start of plugins before starting boot module 2025-06-13 23:29:49 +02:00
Katharine Chui 9b9f7bdcd3 bump com.gladed.androidgitversion to fix android studio building (#19328)
fixes "Could not find com.android.tools.build:gradle:2.3.3."

ref: https://github.com/gladed/gradle-android-git-version/issues/55
2024-07-16 16:53:35 +02:00
Katharine Chui d7fd44280a allow binding custom right stick to analog 2024-07-16 16:06:13 +02:00