guard built-in server warnings with isLocalServer

This commit is contained in:
Katharine Chui committed 2026-10-21 14:29:16 +02:00
1 parent 9c8ebfd59f
commit 8474ca35b6
1 file changed
+2 -2
+2 -2
View File
@@ -2072,11 +2072,11 @@ u32 sceNetAdhocInit(MIPSState *mips) {
SetupAdhocRelayMode();
auto n = GetI18NCategory(I18NCat::NETWORKING);
if (g_Config.bAdhocUseUdp && g_Config.bEnableAdhocServer) {
if (g_Config.bAdhocUseUdp && g_Config.bEnableAdhocServer && isLocalServer) {
g_OSD.Show(OSDType::MESSAGE_WARNING, n->T("Built-in adhoc server does not currently support UDP"), 20.0f, "udp built-in server warning");
}
if (serverHasRelay && g_Config.bEnableAdhocServer) {
if (serverHasRelay && g_Config.bEnableAdhocServer && isLocalServer) {
g_OSD.Show(OSDType::MESSAGE_WARNING, n->T("Built-in adhoc server does not currently support relay"), 20.0f, "relay built-in server warning");
}