diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-02-02 16:47:09 +0100 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-02-02 16:47:38 +0100 |
commit | 13b08376b7f27d71f05c46eb0e5504bf3e6da51a (patch) | |
tree | fb756eec4d74039cddb67ff0b35bbdb625d5b5ae /src/core/hle/service/am/am.cpp | |
parent | Merge pull request #5861 from german77/HandheldFix (diff) | |
download | yuzu-13b08376b7f27d71f05c46eb0e5504bf3e6da51a.tar yuzu-13b08376b7f27d71f05c46eb0e5504bf3e6da51a.tar.gz yuzu-13b08376b7f27d71f05c46eb0e5504bf3e6da51a.tar.bz2 yuzu-13b08376b7f27d71f05c46eb0e5504bf3e6da51a.tar.lz yuzu-13b08376b7f27d71f05c46eb0e5504bf3e6da51a.tar.xz yuzu-13b08376b7f27d71f05c46eb0e5504bf3e6da51a.tar.zst yuzu-13b08376b7f27d71f05c46eb0e5504bf3e6da51a.zip |
Diffstat (limited to 'src/core/hle/service/am/am.cpp')
-rw-r--r-- | src/core/hle/service/am/am.cpp | 13 |
1 files changed, 12 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()); |