summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2018-08-08 16:46:45 -0400
committerGravatar GitHub2018-08-08 16:46:45 -0400
commit756e1e6f9bde96bca3d40d7a3c80eb9213bae429 (patch)
tree93ddb9993dc9be97e81dcd2cb0de242663799d96 /src
parentMerge pull request #980 from bunnei/fix-logs (diff)
parentam: Stub SetScreenShotImageOrientation. (diff)
downloadyuzu-756e1e6f9bde96bca3d40d7a3c80eb9213bae429.tar.gz
yuzu-756e1e6f9bde96bca3d40d7a3c80eb9213bae429.tar.xz
yuzu-756e1e6f9bde96bca3d40d7a3c80eb9213bae429.zip
Merge pull request #975 from bunnei/am-stub
am: Stub SetScreenShotImageOrientation.
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/am/am.cpp9
-rw-r--r--src/core/hle/service/am/am.h1
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
136 {16, &ISelfController::SetOutOfFocusSuspendingEnabled, "SetOutOfFocusSuspendingEnabled"}, 136 {16, &ISelfController::SetOutOfFocusSuspendingEnabled, "SetOutOfFocusSuspendingEnabled"},
137 {17, nullptr, "SetControllerFirmwareUpdateSection"}, 137 {17, nullptr, "SetControllerFirmwareUpdateSection"},
138 {18, nullptr, "SetRequiresCaptureButtonShortPressedMessage"}, 138 {18, nullptr, "SetRequiresCaptureButtonShortPressedMessage"},
139 {19, nullptr, "SetScreenShotImageOrientation"}, 139 {19, &ISelfController::SetScreenShotImageOrientation, "SetScreenShotImageOrientation"},
140 {20, nullptr, "SetDesirableKeyboardLayout"}, 140 {20, nullptr, "SetDesirableKeyboardLayout"},
141 {40, &ISelfController::CreateManagedDisplayLayer, "CreateManagedDisplayLayer"}, 141 {40, &ISelfController::CreateManagedDisplayLayer, "CreateManagedDisplayLayer"},
142 {41, nullptr, "IsSystemBufferSharingEnabled"}, 142 {41, nullptr, "IsSystemBufferSharingEnabled"},
@@ -254,6 +254,13 @@ void ISelfController::GetLibraryAppletLaunchableEvent(Kernel::HLERequestContext&
254 LOG_WARNING(Service_AM, "(STUBBED) called"); 254 LOG_WARNING(Service_AM, "(STUBBED) called");
255} 255}
256 256
257void ISelfController::SetScreenShotImageOrientation(Kernel::HLERequestContext& ctx) {
258 IPC::ResponseBuilder rb{ctx, 2};
259 rb.Push(RESULT_SUCCESS);
260
261 LOG_WARNING(Service_AM, "(STUBBED) called");
262}
263
257void ISelfController::CreateManagedDisplayLayer(Kernel::HLERequestContext& ctx) { 264void ISelfController::CreateManagedDisplayLayer(Kernel::HLERequestContext& ctx) {
258 // TODO(Subv): Find out how AM determines the display to use, for now just create the layer 265 // TODO(Subv): Find out how AM determines the display to use, for now just create the layer
259 // in the Default display. 266 // 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:
83 void LockExit(Kernel::HLERequestContext& ctx); 83 void LockExit(Kernel::HLERequestContext& ctx);
84 void UnlockExit(Kernel::HLERequestContext& ctx); 84 void UnlockExit(Kernel::HLERequestContext& ctx);
85 void GetLibraryAppletLaunchableEvent(Kernel::HLERequestContext& ctx); 85 void GetLibraryAppletLaunchableEvent(Kernel::HLERequestContext& ctx);
86 void SetScreenShotImageOrientation(Kernel::HLERequestContext& ctx);
86 void CreateManagedDisplayLayer(Kernel::HLERequestContext& ctx); 87 void CreateManagedDisplayLayer(Kernel::HLERequestContext& ctx);
87 void SetScreenShotPermission(Kernel::HLERequestContext& ctx); 88 void SetScreenShotPermission(Kernel::HLERequestContext& ctx);
88 void SetHandlesRequestToDisplay(Kernel::HLERequestContext& ctx); 89 void SetHandlesRequestToDisplay(Kernel::HLERequestContext& ctx);