diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index cdb9d094ea..69c49737a6 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp @@ -542,8 +542,8 @@ void ISelfController::SetAlbumImageTakenNotificationEnabled(Kernel::HLERequestCo IPC::RequestParser rp{ctx}; album_image_taken_notification_enabled = rp.Pop(); - LOG_DEBUG(Service_AM, "called. album_image_taken_notification_enabled={}", - album_image_taken_notification_enabled); + LOG_WARNING(Service_AM, "(STUBBED) called. album_image_taken_notification_enabled={}", + album_image_taken_notification_enabled); IPC::ResponseBuilder rb{ctx, 2}; rb.Push(RESULT_SUCCESS); @@ -553,6 +553,10 @@ bool ISelfController::GetOperationModeChangedNotification() const { return operation_mode_changed_notification; } +bool ISelfController::GetPerformanceModeChangedNotification() const { + return performance_mode_changed_notification; +} + bool ISelfController::GetAlbumImageTakenNotificationEnabled() const { return album_image_taken_notification_enabled; } @@ -566,7 +570,7 @@ AppletMessageQueue::AppletMessageQueue(Kernel::KernelCore& kernel) { AppletMessageQueue::~AppletMessageQueue() = default; -const std::shared_ptr& AppletMessageQueue::GetMesssageReceiveEvent() const { +const std::shared_ptr& AppletMessageQueue::GetMessageReceiveEvent() const { return on_new_message.readable; } diff --git a/src/core/hle/service/am/am.h b/src/core/hle/service/am/am.h index 6cb6abaf22..a352d31ce6 100644 --- a/src/core/hle/service/am/am.h +++ b/src/core/hle/service/am/am.h @@ -127,6 +127,7 @@ public: ~ISelfController() override; bool GetOperationModeChangedNotification() const; + bool GetPerformanceModeChangedNotification() const; bool GetAlbumImageTakenNotificationEnabled() const; private: diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index bda2894a34..867f8e9130 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -1911,19 +1911,6 @@ void GMainWindow::OnCaptureScreenshot() { } } OnStartGame(); - auto& sm{Core::System::GetInstance().ServiceManager()}; - auto applet_oe = sm.GetService("appletOE"); - auto applet_ae = sm.GetService("appletAE"); - auto isc = sm.GetService("ISelfController"); - bool is_notification_enabled = isc->GetAlbumImageTakenNotificationEnabled(); - bool has_signalled = false; - if (applet_oe != nullptr && is_notification_enabled) { - applet_oe->GetMessageQueue()->ScreenshotTaken(); - has_signalled = true; - } - if (applet_ae != nullptr && !has_signalled && is_notification_enabled) { - applet_ae->GetMessageQueue()->ScreenshotTaken(); - } } void GMainWindow::UpdateWindowTitle(const QString& title_name) {