summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-07-12 15:44:15 +0200
committerGitHub <noreply@github.com>2018-07-12 15:44:15 +0200
commit4f41ffdd418a31b79df9a87406c28b3b152e147d (patch)
tree68173156c6d84a6adf680c6f1824b6fd0f3fda56 /src
parentMerge pull request #649 from ogniK5377/audout-auto (diff)
parentAdded IsWirelessCommunicationEnabled, IsEthernetCommunicationEnabled, IsAnyInternetRequestAccepted (diff)
downloadyuzu-4f41ffdd418a31b79df9a87406c28b3b152e147d.tar
yuzu-4f41ffdd418a31b79df9a87406c28b3b152e147d.tar.gz
yuzu-4f41ffdd418a31b79df9a87406c28b3b152e147d.tar.bz2
yuzu-4f41ffdd418a31b79df9a87406c28b3b152e147d.tar.lz
yuzu-4f41ffdd418a31b79df9a87406c28b3b152e147d.tar.xz
yuzu-4f41ffdd418a31b79df9a87406c28b3b152e147d.tar.zst
yuzu-4f41ffdd418a31b79df9a87406c28b3b152e147d.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/nifm/nifm.cpp24
1 files changed, 21 insertions, 3 deletions
diff --git a/src/core/hle/service/nifm/nifm.cpp b/src/core/hle/service/nifm/nifm.cpp
index 54a151c26..0d951084b 100644
--- a/src/core/hle/service/nifm/nifm.cpp
+++ b/src/core/hle/service/nifm/nifm.cpp
@@ -148,6 +148,24 @@ private:
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") {
@@ -167,11 +185,11 @@ IGeneralService::IGeneralService() : ServiceFramework("IGeneralService") {
{14, &IGeneralService::CreateTemporaryNetworkProfile, "CreateTemporaryNetworkProfile"},
{15, nullptr, "GetCurrentIpConfigInfo"},
{16, nullptr, "SetWirelessCommunicationEnabled"},
- {17, nullptr, "IsWirelessCommunicationEnabled"},
+ {17, &IGeneralService::IsWirelessCommunicationEnabled, "IsWirelessCommunicationEnabled"},
{18, nullptr, "GetInternetConnectionStatus"},
{19, nullptr, "SetEthernetCommunicationEnabled"},
- {20, nullptr, "IsEthernetCommunicationEnabled"},
- {21, nullptr, "IsAnyInternetRequestAccepted"},
+ {20, &IGeneralService::IsEthernetCommunicationEnabled, "IsEthernetCommunicationEnabled"},
+ {21, &IGeneralService::IsAnyInternetRequestAccepted, "IsAnyInternetRequestAccepted"},
{22, nullptr, "IsAnyForegroundRequestAccepted"},
{23, nullptr, "PutToSleep"},
{24, nullptr, "WakeUp"},