mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-21 10:19:04 +02:00
Android: Ask for the local network permission for ad hoc, UPnP and servers
Part of #21585 Android 17 blocks LAN traffic in both directions (TCP and UDP, including broadcast and multicast) without ACCESS_LOCAL_NETWORK. Ask for it when networking, the built-in ad hoc server, UPnP, share-on-startup or the remote debugger gets turned on, when a game initializes ad hoc with networking enabled, and at startup if a server is set to start then. A denied ad hoc send fails with EPERM, which the games never see, so show a message for it. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
fd6e4dfccd
commit
19e4b77be4
9 files changed
+65
-9
No files matched your search
@@ -383,7 +383,11 @@ void RemoteISOScreen::CreateSettingsTab(UI::ViewGroup *remoteisoSettings) {
|
||||
auto ri = GetI18NCategory(I18NCat::REMOTEISO);
|
||||
|
||||
remoteisoSettings->Add(new ItemHeader(ri->T("Remote disc streaming")));
|
||||
remoteisoSettings->Add(new CheckBox(&g_Config.bRemoteShareOnStartup, ri->T("Share on PPSSPP startup")));
|
||||
remoteisoSettings->Add(new CheckBox(&g_Config.bRemoteShareOnStartup, ri->T("Share on PPSSPP startup")))->OnClick.Add([](UI::EventParams &e) {
|
||||
if (g_Config.bRemoteShareOnStartup) {
|
||||
System_RequestLocalNetworkPermission();
|
||||
}
|
||||
});
|
||||
remoteisoSettings->Add(new CheckBox(&g_Config.bRemoteISOManual, ri->T("Manual Mode Client", "Manually configure client")));
|
||||
remoteisoSettings->Add(new CheckBox(&g_Config.bRemoteTab, ri->T("Show Remote tab on main screen")));
|
||||
|
||||
|
||||
Reference in new issue
Block a user