diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2023-10-01 21:00:30 +0200 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2023-10-08 04:57:10 +0200 |
commit | 0bb7990c4919b466658c8d75927ae92a76e86877 (patch) | |
tree | f08cb1c83a60fbd821642f70b41b5b8a2adc49a6 /src/core/hle/service/nifm | |
parent | service: caps: Partially implement IAlbumAccessorService (diff) | |
download | yuzu-0bb7990c4919b466658c8d75927ae92a76e86877.tar yuzu-0bb7990c4919b466658c8d75927ae92a76e86877.tar.gz yuzu-0bb7990c4919b466658c8d75927ae92a76e86877.tar.bz2 yuzu-0bb7990c4919b466658c8d75927ae92a76e86877.tar.lz yuzu-0bb7990c4919b466658c8d75927ae92a76e86877.tar.xz yuzu-0bb7990c4919b466658c8d75927ae92a76e86877.tar.zst yuzu-0bb7990c4919b466658c8d75927ae92a76e86877.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/nifm/nifm.cpp | 12 | ||||
-rw-r--r-- | src/core/hle/service/nifm/nifm.h | 1 |
2 files changed, 12 insertions, 1 deletions
diff --git a/src/core/hle/service/nifm/nifm.cpp b/src/core/hle/service/nifm/nifm.cpp index 21b06d10b..22dc55a6d 100644 --- a/src/core/hle/service/nifm/nifm.cpp +++ b/src/core/hle/service/nifm/nifm.cpp @@ -545,6 +545,16 @@ void IGeneralService::IsAnyInternetRequestAccepted(HLERequestContext& ctx) { } } +void IGeneralService::IsAnyForegroundRequestAccepted(HLERequestContext& ctx) { + const bool is_accepted{}; + + LOG_WARNING(Service_NIFM, "(STUBBED) called, is_accepted={}", is_accepted); + + IPC::ResponseBuilder rb{ctx, 3}; + rb.Push(ResultSuccess); + rb.Push<u8>(is_accepted); +} + IGeneralService::IGeneralService(Core::System& system_) : ServiceFramework{system_, "IGeneralService"}, network{system_.GetRoomNetwork()} { // clang-format off @@ -569,7 +579,7 @@ IGeneralService::IGeneralService(Core::System& system_) {19, nullptr, "SetEthernetCommunicationEnabled"}, {20, &IGeneralService::IsEthernetCommunicationEnabled, "IsEthernetCommunicationEnabled"}, {21, &IGeneralService::IsAnyInternetRequestAccepted, "IsAnyInternetRequestAccepted"}, - {22, nullptr, "IsAnyForegroundRequestAccepted"}, + {22, &IGeneralService::IsAnyForegroundRequestAccepted, "IsAnyForegroundRequestAccepted"}, {23, nullptr, "PutToSleep"}, {24, nullptr, "WakeUp"}, {25, nullptr, "GetSsidListVersion"}, diff --git a/src/core/hle/service/nifm/nifm.h b/src/core/hle/service/nifm/nifm.h index ae99c4695..b74b66438 100644 --- a/src/core/hle/service/nifm/nifm.h +++ b/src/core/hle/service/nifm/nifm.h @@ -35,6 +35,7 @@ private: void GetInternetConnectionStatus(HLERequestContext& ctx); void IsEthernetCommunicationEnabled(HLERequestContext& ctx); void IsAnyInternetRequestAccepted(HLERequestContext& ctx); + void IsAnyForegroundRequestAccepted(HLERequestContext& ctx); Network::RoomNetwork& network; }; |