mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-10-01 14:59:13 +00:00
[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:
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"},
|
||||
{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");
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user