diff options
author | bunnei <bunneidev@gmail.com> | 2018-08-08 22:46:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-08 22:46:45 +0200 |
commit | 756e1e6f9bde96bca3d40d7a3c80eb9213bae429 (patch) | |
tree | 93ddb9993dc9be97e81dcd2cb0de242663799d96 | |
parent | Merge pull request #980 from bunnei/fix-logs (diff) | |
parent | am: Stub SetScreenShotImageOrientation. (diff) | |
download | yuzu-756e1e6f9bde96bca3d40d7a3c80eb9213bae429.tar yuzu-756e1e6f9bde96bca3d40d7a3c80eb9213bae429.tar.gz yuzu-756e1e6f9bde96bca3d40d7a3c80eb9213bae429.tar.bz2 yuzu-756e1e6f9bde96bca3d40d7a3c80eb9213bae429.tar.lz yuzu-756e1e6f9bde96bca3d40d7a3c80eb9213bae429.tar.xz yuzu-756e1e6f9bde96bca3d40d7a3c80eb9213bae429.tar.zst yuzu-756e1e6f9bde96bca3d40d7a3c80eb9213bae429.zip |
-rw-r--r-- | src/core/hle/service/am/am.cpp | 9 | ||||
-rw-r--r-- | src/core/hle/service/am/am.h | 1 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index 9404d6b8c..762763463 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp @@ -136,7 +136,7 @@ ISelfController::ISelfController(std::shared_ptr<NVFlinger::NVFlinger> nvflinger {16, &ISelfController::SetOutOfFocusSuspendingEnabled, "SetOutOfFocusSuspendingEnabled"}, {17, nullptr, "SetControllerFirmwareUpdateSection"}, {18, nullptr, "SetRequiresCaptureButtonShortPressedMessage"}, - {19, nullptr, "SetScreenShotImageOrientation"}, + {19, &ISelfController::SetScreenShotImageOrientation, "SetScreenShotImageOrientation"}, {20, nullptr, "SetDesirableKeyboardLayout"}, {40, &ISelfController::CreateManagedDisplayLayer, "CreateManagedDisplayLayer"}, {41, nullptr, "IsSystemBufferSharingEnabled"}, @@ -254,6 +254,13 @@ void ISelfController::GetLibraryAppletLaunchableEvent(Kernel::HLERequestContext& LOG_WARNING(Service_AM, "(STUBBED) called"); } +void ISelfController::SetScreenShotImageOrientation(Kernel::HLERequestContext& ctx) { + IPC::ResponseBuilder rb{ctx, 2}; + rb.Push(RESULT_SUCCESS); + + LOG_WARNING(Service_AM, "(STUBBED) called"); +} + void ISelfController::CreateManagedDisplayLayer(Kernel::HLERequestContext& ctx) { // TODO(Subv): Find out how AM determines the display to use, for now just create the layer // in the Default display. diff --git a/src/core/hle/service/am/am.h b/src/core/hle/service/am/am.h index 8f4f98346..862f338ac 100644 --- a/src/core/hle/service/am/am.h +++ b/src/core/hle/service/am/am.h @@ -83,6 +83,7 @@ private: void LockExit(Kernel::HLERequestContext& ctx); void UnlockExit(Kernel::HLERequestContext& ctx); void GetLibraryAppletLaunchableEvent(Kernel::HLERequestContext& ctx); + void SetScreenShotImageOrientation(Kernel::HLERequestContext& ctx); void CreateManagedDisplayLayer(Kernel::HLERequestContext& ctx); void SetScreenShotPermission(Kernel::HLERequestContext& ctx); void SetHandlesRequestToDisplay(Kernel::HLERequestContext& ctx); |