summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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:
148 148
149 LOG_DEBUG(Service_NIFM, "called"); 149 LOG_DEBUG(Service_NIFM, "called");
150 } 150 }
151 void IsWirelessCommunicationEnabled(Kernel::HLERequestContext& ctx) {
152 LOG_WARNING(Service_NIFM, "(STUBBED) called");
153 IPC::ResponseBuilder rb{ctx, 3};
154 rb.Push(RESULT_SUCCESS);
155 rb.Push<u8>(0);
156 }
157 void IsEthernetCommunicationEnabled(Kernel::HLERequestContext& ctx) {
158 LOG_WARNING(Service_NIFM, "(STUBBED) called");
159 IPC::ResponseBuilder rb{ctx, 3};
160 rb.Push(RESULT_SUCCESS);
161 rb.Push<u8>(0);
162 }
163 void IsAnyInternetRequestAccepted(Kernel::HLERequestContext& ctx) {
164 LOG_WARNING(Service_NIFM, "(STUBBED) called");
165 IPC::ResponseBuilder rb{ctx, 3};
166 rb.Push(RESULT_SUCCESS);
167 rb.Push<u8>(0);
168 }
151}; 169};
152 170
153IGeneralService::IGeneralService() : ServiceFramework("IGeneralService") { 171IGeneralService::IGeneralService() : ServiceFramework("IGeneralService") {
@@ -167,11 +185,11 @@ IGeneralService::IGeneralService() : ServiceFramework("IGeneralService") {
167 {14, &IGeneralService::CreateTemporaryNetworkProfile, "CreateTemporaryNetworkProfile"}, 185 {14, &IGeneralService::CreateTemporaryNetworkProfile, "CreateTemporaryNetworkProfile"},
168 {15, nullptr, "GetCurrentIpConfigInfo"}, 186 {15, nullptr, "GetCurrentIpConfigInfo"},
169 {16, nullptr, "SetWirelessCommunicationEnabled"}, 187 {16, nullptr, "SetWirelessCommunicationEnabled"},
170 {17, nullptr, "IsWirelessCommunicationEnabled"}, 188 {17, &IGeneralService::IsWirelessCommunicationEnabled, "IsWirelessCommunicationEnabled"},
171 {18, nullptr, "GetInternetConnectionStatus"}, 189 {18, nullptr, "GetInternetConnectionStatus"},
172 {19, nullptr, "SetEthernetCommunicationEnabled"}, 190 {19, nullptr, "SetEthernetCommunicationEnabled"},
173 {20, nullptr, "IsEthernetCommunicationEnabled"}, 191 {20, &IGeneralService::IsEthernetCommunicationEnabled, "IsEthernetCommunicationEnabled"},
174 {21, nullptr, "IsAnyInternetRequestAccepted"}, 192 {21, &IGeneralService::IsAnyInternetRequestAccepted, "IsAnyInternetRequestAccepted"},
175 {22, nullptr, "IsAnyForegroundRequestAccepted"}, 193 {22, nullptr, "IsAnyForegroundRequestAccepted"},
176 {23, nullptr, "PutToSleep"}, 194 {23, nullptr, "PutToSleep"},
177 {24, nullptr, "WakeUp"}, 195 {24, nullptr, "WakeUp"},