Stub SetAlbumImageTakenNotificationEnabled since Screenshot is not implemented
This commit is contained in:
@@ -542,8 +542,8 @@ void ISelfController::SetAlbumImageTakenNotificationEnabled(Kernel::HLERequestCo
|
||||
IPC::RequestParser rp{ctx};
|
||||
album_image_taken_notification_enabled = rp.Pop<bool>();
|
||||
|
||||
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<Kernel::ReadableEvent>& AppletMessageQueue::GetMesssageReceiveEvent() const {
|
||||
const std::shared_ptr<Kernel::ReadableEvent>& AppletMessageQueue::GetMessageReceiveEvent() const {
|
||||
return on_new_message.readable;
|
||||
}
|
||||
|
||||
|
||||
@@ -127,6 +127,7 @@ public:
|
||||
~ISelfController() override;
|
||||
|
||||
bool GetOperationModeChangedNotification() const;
|
||||
bool GetPerformanceModeChangedNotification() const;
|
||||
bool GetAlbumImageTakenNotificationEnabled() const;
|
||||
|
||||
private:
|
||||
|
||||
@@ -1911,19 +1911,6 @@ void GMainWindow::OnCaptureScreenshot() {
|
||||
}
|
||||
}
|
||||
OnStartGame();
|
||||
auto& sm{Core::System::GetInstance().ServiceManager()};
|
||||
auto applet_oe = sm.GetService<Service::AM::AppletOE>("appletOE");
|
||||
auto applet_ae = sm.GetService<Service::AM::AppletAE>("appletAE");
|
||||
auto isc = sm.GetService<Service::AM::ISelfController>("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) {
|
||||
|
||||
Reference in New Issue
Block a user