mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-09 11:39:59 +00:00
Added IsWirelessCommunicationEnabled, IsEthernetCommunicationEnabled, IsAnyInternetRequestAccepted
Since we have no socket implementation we should be returning 0 to indicate we're currently offline.
This commit is contained in:
parent
7230ceb584
commit
3d68f6ba6c
1 changed files with 21 additions and 3 deletions
|
@ -148,6 +148,24 @@ private:
|
||||||
|
|
||||||
LOG_DEBUG(Service_NIFM, "called");
|
LOG_DEBUG(Service_NIFM, "called");
|
||||||
}
|
}
|
||||||
|
void IsWirelessCommunicationEnabled(Kernel::HLERequestContext& ctx) {
|
||||||
|
LOG_WARNING(Service_NIFM, "(STUBBED) called");
|
||||||
|
IPC::ResponseBuilder rb{ctx, 3};
|
||||||
|
rb.Push(RESULT_SUCCESS);
|
||||||
|
rb.Push<u8>(0);
|
||||||
|
}
|
||||||
|
void IsEthernetCommunicationEnabled(Kernel::HLERequestContext& ctx) {
|
||||||
|
LOG_WARNING(Service_NIFM, "(STUBBED) called");
|
||||||
|
IPC::ResponseBuilder rb{ctx, 3};
|
||||||
|
rb.Push(RESULT_SUCCESS);
|
||||||
|
rb.Push<u8>(0);
|
||||||
|
}
|
||||||
|
void IsAnyInternetRequestAccepted(Kernel::HLERequestContext& ctx) {
|
||||||
|
LOG_WARNING(Service_NIFM, "(STUBBED) called");
|
||||||
|
IPC::ResponseBuilder rb{ctx, 3};
|
||||||
|
rb.Push(RESULT_SUCCESS);
|
||||||
|
rb.Push<u8>(0);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
IGeneralService::IGeneralService() : ServiceFramework("IGeneralService") {
|
IGeneralService::IGeneralService() : ServiceFramework("IGeneralService") {
|
||||||
|
@ -167,11 +185,11 @@ IGeneralService::IGeneralService() : ServiceFramework("IGeneralService") {
|
||||||
{14, &IGeneralService::CreateTemporaryNetworkProfile, "CreateTemporaryNetworkProfile"},
|
{14, &IGeneralService::CreateTemporaryNetworkProfile, "CreateTemporaryNetworkProfile"},
|
||||||
{15, nullptr, "GetCurrentIpConfigInfo"},
|
{15, nullptr, "GetCurrentIpConfigInfo"},
|
||||||
{16, nullptr, "SetWirelessCommunicationEnabled"},
|
{16, nullptr, "SetWirelessCommunicationEnabled"},
|
||||||
{17, nullptr, "IsWirelessCommunicationEnabled"},
|
{17, &IGeneralService::IsWirelessCommunicationEnabled, "IsWirelessCommunicationEnabled"},
|
||||||
{18, nullptr, "GetInternetConnectionStatus"},
|
{18, nullptr, "GetInternetConnectionStatus"},
|
||||||
{19, nullptr, "SetEthernetCommunicationEnabled"},
|
{19, nullptr, "SetEthernetCommunicationEnabled"},
|
||||||
{20, nullptr, "IsEthernetCommunicationEnabled"},
|
{20, &IGeneralService::IsEthernetCommunicationEnabled, "IsEthernetCommunicationEnabled"},
|
||||||
{21, nullptr, "IsAnyInternetRequestAccepted"},
|
{21, &IGeneralService::IsAnyInternetRequestAccepted, "IsAnyInternetRequestAccepted"},
|
||||||
{22, nullptr, "IsAnyForegroundRequestAccepted"},
|
{22, nullptr, "IsAnyForegroundRequestAccepted"},
|
||||||
{23, nullptr, "PutToSleep"},
|
{23, nullptr, "PutToSleep"},
|
||||||
{24, nullptr, "WakeUp"},
|
{24, nullptr, "WakeUp"},
|
||||||
|
|
Loading…
Reference in a new issue