diff options
| author | 2021-03-30 12:58:27 -0400 | |
|---|---|---|
| committer | 2021-03-30 13:45:00 -0400 | |
| commit | ca30190fad4265d3e974ac622fce86b893a8d73a (patch) | |
| tree | ca2e24597de738aeddcee2ec06df4a9e5511c560 | |
| parent | Merge pull request #6124 from jbeich/vulkan+opengl (diff) | |
| download | yuzu-ca30190fad4265d3e974ac622fce86b893a8d73a.tar.gz yuzu-ca30190fad4265d3e974ac622fce86b893a8d73a.tar.xz yuzu-ca30190fad4265d3e974ac622fce86b893a8d73a.zip | |
ISelfController: Stub SetAlbumImageTakenNotificationEnabled
This service call sets an internal flag whether a notification is shown when an image is captured.
Currently we do not support capturing images via the capture button, so this can be stubbed for now.
| -rw-r--r-- | src/core/hle/service/am/am.cpp | 17 | ||||
| -rw-r--r-- | src/core/hle/service/am/am.h | 1 |
2 files changed, 17 insertions, 1 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index 8e1fe9438..d91237cba 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp | |||
| @@ -295,7 +295,7 @@ ISelfController::ISelfController(Core::System& system_, NVFlinger::NVFlinger& nv | |||
| 295 | {80, nullptr, "SetWirelessPriorityMode"}, | 295 | {80, nullptr, "SetWirelessPriorityMode"}, |
| 296 | {90, &ISelfController::GetAccumulatedSuspendedTickValue, "GetAccumulatedSuspendedTickValue"}, | 296 | {90, &ISelfController::GetAccumulatedSuspendedTickValue, "GetAccumulatedSuspendedTickValue"}, |
| 297 | {91, &ISelfController::GetAccumulatedSuspendedTickChangedEvent, "GetAccumulatedSuspendedTickChangedEvent"}, | 297 | {91, &ISelfController::GetAccumulatedSuspendedTickChangedEvent, "GetAccumulatedSuspendedTickChangedEvent"}, |
| 298 | {100, nullptr, "SetAlbumImageTakenNotificationEnabled"}, | 298 | {100, &ISelfController::SetAlbumImageTakenNotificationEnabled, "SetAlbumImageTakenNotificationEnabled"}, |
| 299 | {110, nullptr, "SetApplicationAlbumUserData"}, | 299 | {110, nullptr, "SetApplicationAlbumUserData"}, |
| 300 | {1000, nullptr, "GetDebugStorageChannel"}, | 300 | {1000, nullptr, "GetDebugStorageChannel"}, |
| 301 | }; | 301 | }; |
| @@ -560,6 +560,21 @@ void ISelfController::GetAccumulatedSuspendedTickChangedEvent(Kernel::HLERequest | |||
| 560 | rb.PushCopyObjects(accumulated_suspended_tick_changed_event->GetReadableEvent()); | 560 | rb.PushCopyObjects(accumulated_suspended_tick_changed_event->GetReadableEvent()); |
| 561 | } | 561 | } |
| 562 | 562 | ||
| 563 | void ISelfController::SetAlbumImageTakenNotificationEnabled(Kernel::HLERequestContext& ctx) { | ||
| 564 | IPC::RequestParser rp{ctx}; | ||
| 565 | |||
| 566 | // This service call sets an internal flag whether a notification is shown when an image is | ||
| 567 | // captured. Currently we do not support capturing images via the capture button, so this can be | ||
| 568 | // stubbed for now. | ||
| 569 | const bool album_image_taken_notification_enabled = rp.Pop<bool>(); | ||
| 570 | |||
| 571 | LOG_WARNING(Service_AM, "(STUBBED) called. album_image_taken_notification_enabled={}", | ||
| 572 | album_image_taken_notification_enabled); | ||
| 573 | |||
| 574 | IPC::ResponseBuilder rb{ctx, 2}; | ||
| 575 | rb.Push(RESULT_SUCCESS); | ||
| 576 | } | ||
| 577 | |||
| 563 | AppletMessageQueue::AppletMessageQueue(Kernel::KernelCore& kernel) { | 578 | AppletMessageQueue::AppletMessageQueue(Kernel::KernelCore& kernel) { |
| 564 | on_new_message = Kernel::KEvent::Create(kernel, "AMMessageQueue:OnMessageReceived"); | 579 | on_new_message = Kernel::KEvent::Create(kernel, "AMMessageQueue:OnMessageReceived"); |
| 565 | on_new_message->Initialize(); | 580 | on_new_message->Initialize(); |
diff --git a/src/core/hle/service/am/am.h b/src/core/hle/service/am/am.h index 6911f0d6e..f6a453ab7 100644 --- a/src/core/hle/service/am/am.h +++ b/src/core/hle/service/am/am.h | |||
| @@ -146,6 +146,7 @@ private: | |||
| 146 | void IsAutoSleepDisabled(Kernel::HLERequestContext& ctx); | 146 | void IsAutoSleepDisabled(Kernel::HLERequestContext& ctx); |
| 147 | void GetAccumulatedSuspendedTickValue(Kernel::HLERequestContext& ctx); | 147 | void GetAccumulatedSuspendedTickValue(Kernel::HLERequestContext& ctx); |
| 148 | void GetAccumulatedSuspendedTickChangedEvent(Kernel::HLERequestContext& ctx); | 148 | void GetAccumulatedSuspendedTickChangedEvent(Kernel::HLERequestContext& ctx); |
| 149 | void SetAlbumImageTakenNotificationEnabled(Kernel::HLERequestContext& ctx); | ||
| 149 | 150 | ||
| 150 | enum class ScreenshotPermission : u32 { | 151 | enum class ScreenshotPermission : u32 { |
| 151 | Inherit = 0, | 152 | Inherit = 0, |