[hle] adds SetProtocol to user local communication (#3329)

Stubs SetProtocol needed for Animal Crossing 3.0 LDN

SwitchBrew documentation: https://switchbrew.org/wiki/LDN_services#SetProtocol

Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3329
Reviewed-by: MaranBr <[email protected]>
Reviewed-by: Lizzie <[email protected]>
Co-authored-by: Maufeat <[email protected]>
Co-committed-by: Maufeat <[email protected]>
This commit is contained in:
Maufeat authored and crueter committed 2026-01-18 02:21:59 +01:00
1 parent 8df41f06c7
commit 833a38b443
3 files changed
+9 -1

No files matched your search

@@ -38,6 +38,7 @@ IUserLocalCommunicationService::IUserLocalCommunicationService(Core::System& sys
{102, D<&IUserLocalCommunicationService::Scan>, "Scan"}, {102, D<&IUserLocalCommunicationService::Scan>, "Scan"},
{103, D<&IUserLocalCommunicationService::ScanPrivate>, "ScanPrivate"}, {103, D<&IUserLocalCommunicationService::ScanPrivate>, "ScanPrivate"},
{104, D<&IUserLocalCommunicationService::SetWirelessControllerRestriction>, "SetWirelessControllerRestriction"}, {104, D<&IUserLocalCommunicationService::SetWirelessControllerRestriction>, "SetWirelessControllerRestriction"},
{ 106, D<&IUserLocalCommunicationService::SetProtocol>, "SetProtocol" },
{200, D<&IUserLocalCommunicationService::OpenAccessPoint>, "OpenAccessPoint"}, {200, D<&IUserLocalCommunicationService::OpenAccessPoint>, "OpenAccessPoint"},
{201, D<&IUserLocalCommunicationService::CloseAccessPoint>, "CloseAccessPoint"}, {201, D<&IUserLocalCommunicationService::CloseAccessPoint>, "CloseAccessPoint"},
{202, D<&IUserLocalCommunicationService::CreateNetwork>, "CreateNetwork"}, {202, D<&IUserLocalCommunicationService::CreateNetwork>, "CreateNetwork"},
@@ -188,6 +189,11 @@ Result IUserLocalCommunicationService::ScanPrivate(
R_RETURN(lan_discovery.Scan(out_network_info, *network_count, scan_filter)); R_RETURN(lan_discovery.Scan(out_network_info, *network_count, scan_filter));
} }
Result IUserLocalCommunicationService::SetProtocol(u32 protocol) {
LOG_WARNING(Service_LDN, "(STUBBED) called, protocol={}", protocol);
R_SUCCEED();
}
Result IUserLocalCommunicationService::SetWirelessControllerRestriction( Result IUserLocalCommunicationService::SetWirelessControllerRestriction(
WirelessControllerRestriction wireless_restriction) { WirelessControllerRestriction wireless_restriction) {
LOG_WARNING(Service_LDN, "(STUBBED) called"); LOG_WARNING(Service_LDN, "(STUBBED) called");
@@ -49,6 +49,8 @@ private:
Result ScanPrivate(Out<s16> network_count, WifiChannel channel, const ScanFilter& scan_filter, Result ScanPrivate(Out<s16> network_count, WifiChannel channel, const ScanFilter& scan_filter,
OutArray<NetworkInfo, BufferAttr_HipcAutoSelect> out_network_info); OutArray<NetworkInfo, BufferAttr_HipcAutoSelect> out_network_info);
Result SetProtocol(u32 protocol);
Result SetWirelessControllerRestriction(WirelessControllerRestriction wireless_restriction); Result SetWirelessControllerRestriction(WirelessControllerRestriction wireless_restriction);
Result OpenAccessPoint(); Result OpenAccessPoint();
@@ -292,7 +292,7 @@ Result IParentalControlService::EndFreeCommunication() {
} }
Result IParentalControlService::IsFreeCommunicationAvailable() { Result IParentalControlService::IsFreeCommunicationAvailable() {
LOG_WARNING(Service_PCTL, "(STUBBED) called"); LOG_DEBUG(Service_PCTL, "(STUBBED) called");
if (!CheckFreeCommunicationPermissionImpl()) { if (!CheckFreeCommunicationPermissionImpl()) {
R_THROW(PCTL::ResultNoFreeCommunication); R_THROW(PCTL::ResultNoFreeCommunication);