Browse Source

[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 <maranbr@eden-emu.dev>
Reviewed-by: Lizzie <lizzie@eden-emu.dev>
Co-authored-by: Maufeat <sahyno1996@gmail.com>
Co-committed-by: Maufeat <sahyno1996@gmail.com>
pull/3333/head
Maufeat 2 weeks ago
committed by crueter
parent
commit
833a38b443
No known key found for this signature in database GPG Key ID: 425ACD2D4830EBC6
  1. 6
      src/core/hle/service/ldn/user_local_communication_service.cpp
  2. 2
      src/core/hle/service/ldn/user_local_communication_service.h
  3. 2
      src/core/hle/service/pctl/parental_control_service.cpp

6
src/core/hle/service/ldn/user_local_communication_service.cpp

@ -38,6 +38,7 @@ IUserLocalCommunicationService::IUserLocalCommunicationService(Core::System& sys
{102, D<&IUserLocalCommunicationService::Scan>, "Scan"},
{103, D<&IUserLocalCommunicationService::ScanPrivate>, "ScanPrivate"},
{104, D<&IUserLocalCommunicationService::SetWirelessControllerRestriction>, "SetWirelessControllerRestriction"},
{ 106, D<&IUserLocalCommunicationService::SetProtocol>, "SetProtocol" },
{200, D<&IUserLocalCommunicationService::OpenAccessPoint>, "OpenAccessPoint"},
{201, D<&IUserLocalCommunicationService::CloseAccessPoint>, "CloseAccessPoint"},
{202, D<&IUserLocalCommunicationService::CreateNetwork>, "CreateNetwork"},
@ -188,6 +189,11 @@ Result IUserLocalCommunicationService::ScanPrivate(
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(
WirelessControllerRestriction wireless_restriction) {
LOG_WARNING(Service_LDN, "(STUBBED) called");

2
src/core/hle/service/ldn/user_local_communication_service.h

@ -49,6 +49,8 @@ private:
Result ScanPrivate(Out<s16> network_count, WifiChannel channel, const ScanFilter& scan_filter,
OutArray<NetworkInfo, BufferAttr_HipcAutoSelect> out_network_info);
Result SetProtocol(u32 protocol);
Result SetWirelessControllerRestriction(WirelessControllerRestriction wireless_restriction);
Result OpenAccessPoint();

2
src/core/hle/service/pctl/parental_control_service.cpp

@ -292,7 +292,7 @@ Result IParentalControlService::EndFreeCommunication() {
}
Result IParentalControlService::IsFreeCommunicationAvailable() {
LOG_WARNING(Service_PCTL, "(STUBBED) called");
LOG_DEBUG(Service_PCTL, "(STUBBED) called");
if (!CheckFreeCommunicationPermissionImpl()) {
R_THROW(PCTL::ResultNoFreeCommunication);

Loading…
Cancel
Save