diff options
author | bunnei <bunneidev@gmail.com> | 2021-02-05 22:49:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-05 22:49:49 +0100 |
commit | b0727c90c54ead33eddba9a221e52914df021079 (patch) | |
tree | c4a8d0af35f207ea4a2813d05ac1e4f546290850 /src/core/hle/service/am | |
parent | Merge pull request #5865 from lat9nq/conditionally-quiet (diff) | |
parent | IApplicationFunctions: Implement GetHealthWarningDisappearedSystemEvent (diff) | |
download | yuzu-b0727c90c54ead33eddba9a221e52914df021079.tar yuzu-b0727c90c54ead33eddba9a221e52914df021079.tar.gz yuzu-b0727c90c54ead33eddba9a221e52914df021079.tar.bz2 yuzu-b0727c90c54ead33eddba9a221e52914df021079.tar.lz yuzu-b0727c90c54ead33eddba9a221e52914df021079.tar.xz yuzu-b0727c90c54ead33eddba9a221e52914df021079.tar.zst yuzu-b0727c90c54ead33eddba9a221e52914df021079.zip |
Diffstat (limited to 'src/core/hle/service/am')
-rw-r--r-- | src/core/hle/service/am/am.cpp | 13 | ||||
-rw-r--r-- | src/core/hle/service/am/am.h | 2 |
2 files changed, 14 insertions, 1 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index d42236a3a..07a755599 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp @@ -1216,7 +1216,7 @@ IApplicationFunctions::IApplicationFunctions(Core::System& system_) {141, &IApplicationFunctions::TryPopFromFriendInvitationStorageChannel, "TryPopFromFriendInvitationStorageChannel"}, {150, nullptr, "GetNotificationStorageChannelEvent"}, {151, nullptr, "TryPopFromNotificationStorageChannel"}, - {160, nullptr, "GetHealthWarningDisappearedSystemEvent"}, + {160, &IApplicationFunctions::GetHealthWarningDisappearedSystemEvent, "GetHealthWarningDisappearedSystemEvent"}, {170, nullptr, "SetHdcpAuthenticationActivated"}, {180, nullptr, "GetLaunchRequiredVersion"}, {181, nullptr, "UpgradeLaunchRequiredVersion"}, @@ -1234,6 +1234,9 @@ IApplicationFunctions::IApplicationFunctions(Core::System& system_) friend_invitation_storage_channel_event = Kernel::WritableEvent::CreateEventPair( kernel, "IApplicationFunctions:FriendInvitationStorageChannelEvent"); + + health_warning_disappeared_system_event = Kernel::WritableEvent::CreateEventPair( + kernel, "IApplicationFunctions:HealthWarningDisappearedSystemEvent"); } IApplicationFunctions::~IApplicationFunctions() = default; @@ -1649,6 +1652,14 @@ void IApplicationFunctions::TryPopFromFriendInvitationStorageChannel( rb.Push(ERR_NO_DATA_IN_CHANNEL); } +void IApplicationFunctions::GetHealthWarningDisappearedSystemEvent(Kernel::HLERequestContext& ctx) { + LOG_DEBUG(Service_AM, "called"); + + IPC::ResponseBuilder rb{ctx, 2, 1}; + rb.Push(RESULT_SUCCESS); + rb.PushCopyObjects(health_warning_disappeared_system_event.readable); +} + void InstallInterfaces(SM::ServiceManager& service_manager, NVFlinger::NVFlinger& nvflinger, Core::System& system) { auto message_queue = std::make_shared<AppletMessageQueue>(system.Kernel()); diff --git a/src/core/hle/service/am/am.h b/src/core/hle/service/am/am.h index f5db41ac8..154a48710 100644 --- a/src/core/hle/service/am/am.h +++ b/src/core/hle/service/am/am.h @@ -290,12 +290,14 @@ private: void GetGpuErrorDetectedSystemEvent(Kernel::HLERequestContext& ctx); void GetFriendInvitationStorageChannelEvent(Kernel::HLERequestContext& ctx); void TryPopFromFriendInvitationStorageChannel(Kernel::HLERequestContext& ctx); + void GetHealthWarningDisappearedSystemEvent(Kernel::HLERequestContext& ctx); bool launch_popped_application_specific = false; bool launch_popped_account_preselect = false; s32 previous_program_index{-1}; Kernel::EventPair gpu_error_detected_event; Kernel::EventPair friend_invitation_storage_channel_event; + Kernel::EventPair health_warning_disappeared_system_event; }; class IHomeMenuFunctions final : public ServiceFramework<IHomeMenuFunctions> { |