diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-12-03 02:12:24 +0100 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-12-03 02:12:24 +0100 |
commit | f138731e2fc46d44ae2dc3a15e0dd435d65ddb8d (patch) | |
tree | d56f29c0e1672b24453d5eef28943c83345622ad /src/core/hle/service/am/am.cpp | |
parent | Merge pull request #7483 from zhaobot/tx-update-20211201022129 (diff) | |
download | yuzu-f138731e2fc46d44ae2dc3a15e0dd435d65ddb8d.tar yuzu-f138731e2fc46d44ae2dc3a15e0dd435d65ddb8d.tar.gz yuzu-f138731e2fc46d44ae2dc3a15e0dd435d65ddb8d.tar.bz2 yuzu-f138731e2fc46d44ae2dc3a15e0dd435d65ddb8d.tar.lz yuzu-f138731e2fc46d44ae2dc3a15e0dd435d65ddb8d.tar.xz yuzu-f138731e2fc46d44ae2dc3a15e0dd435d65ddb8d.tar.zst yuzu-f138731e2fc46d44ae2dc3a15e0dd435d65ddb8d.zip |
Diffstat (limited to 'src/core/hle/service/am/am.cpp')
-rw-r--r-- | src/core/hle/service/am/am.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index aee8d4f93..e60661fe1 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp @@ -30,6 +30,7 @@ #include "core/hle/service/apm/apm_controller.h" #include "core/hle/service/apm/apm_interface.h" #include "core/hle/service/bcat/backend/backend.h" +#include "core/hle/service/caps/caps.h" #include "core/hle/service/filesystem/filesystem.h" #include "core/hle/service/ns/ns.h" #include "core/hle/service/nvflinger/nvflinger.h" @@ -298,7 +299,7 @@ ISelfController::ISelfController(Core::System& system_, NVFlinger::NVFlinger& nv {91, &ISelfController::GetAccumulatedSuspendedTickChangedEvent, "GetAccumulatedSuspendedTickChangedEvent"}, {100, &ISelfController::SetAlbumImageTakenNotificationEnabled, "SetAlbumImageTakenNotificationEnabled"}, {110, nullptr, "SetApplicationAlbumUserData"}, - {120, nullptr, "SaveCurrentScreenshot"}, + {120, &ISelfController::SaveCurrentScreenshot, "SaveCurrentScreenshot"}, {130, nullptr, "SetRecordVolumeMuted"}, {1000, nullptr, "GetDebugStorageChannel"}, }; @@ -579,6 +580,17 @@ void ISelfController::SetAlbumImageTakenNotificationEnabled(Kernel::HLERequestCo rb.Push(ResultSuccess); } +void ISelfController::SaveCurrentScreenshot(Kernel::HLERequestContext& ctx) { + IPC::RequestParser rp{ctx}; + + const auto album_report_option = rp.PopEnum<Capture::AlbumReportOption>(); + + LOG_WARNING(Service_AM, "(STUBBED) called. album_report_option={}", album_report_option); + + IPC::ResponseBuilder rb{ctx, 2}; + rb.Push(ResultSuccess); +} + AppletMessageQueue::AppletMessageQueue(Core::System& system) : service_context{system, "AppletMessageQueue"} { on_new_message = service_context.CreateEvent("AMMessageQueue:OnMessageReceived"); |