summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am/am.cpp
diff options
context:
space:
mode:
authorgreggameplayer <33609333+greggameplayer@users.noreply.github.com>2018-05-26 04:31:54 +0200
committerbunnei <bunneidev@gmail.com>2018-05-26 04:31:54 +0200
commitb16e5c6a81abdd0ac7b62f466bf15e4d51db26f9 (patch)
tree35672c1565e13a34bef5908a73d9a654c4e836f6 /src/core/hle/service/am/am.cpp
parentMerge pull request #466 from mailwl/nv-timeout (diff)
downloadyuzu-b16e5c6a81abdd0ac7b62f466bf15e4d51db26f9.tar
yuzu-b16e5c6a81abdd0ac7b62f466bf15e4d51db26f9.tar.gz
yuzu-b16e5c6a81abdd0ac7b62f466bf15e4d51db26f9.tar.bz2
yuzu-b16e5c6a81abdd0ac7b62f466bf15e4d51db26f9.tar.lz
yuzu-b16e5c6a81abdd0ac7b62f466bf15e4d51db26f9.tar.xz
yuzu-b16e5c6a81abdd0ac7b62f466bf15e4d51db26f9.tar.zst
yuzu-b16e5c6a81abdd0ac7b62f466bf15e4d51db26f9.zip
Diffstat (limited to 'src/core/hle/service/am/am.cpp')
-rw-r--r--src/core/hle/service/am/am.cpp35
1 files changed, 34 insertions, 1 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp
index e78cef552..0223e0a5f 100644
--- a/src/core/hle/service/am/am.cpp
+++ b/src/core/hle/service/am/am.cpp
@@ -74,7 +74,40 @@ void IAudioController::GetLibraryAppletExpectedMasterVolume(Kernel::HLERequestCo
rb.Push(volume);
}
-IDisplayController::IDisplayController() : ServiceFramework("IDisplayController") {}
+IDisplayController::IDisplayController() : ServiceFramework("IDisplayController") {
+ static const FunctionInfo functions[] = {
+ {0, nullptr, "GetLastForegroundCaptureImage"},
+ {1, nullptr, "UpdateLastForegroundCaptureImage"},
+ {2, nullptr, "GetLastApplicationCaptureImage"},
+ {3, nullptr, "GetCallerAppletCaptureImage"},
+ {4, nullptr, "UpdateCallerAppletCaptureImage"},
+ {5, nullptr, "GetLastForegroundCaptureImageEx"},
+ {6, nullptr, "GetLastApplicationCaptureImageEx"},
+ {7, nullptr, "GetCallerAppletCaptureImageEx"},
+ {8, nullptr, "TakeScreenShotOfOwnLayer"}, // 2.0.0+
+ {9, nullptr, "CopyBetweenCaptureBuffers"}, // 5.0.0+
+ {10, nullptr, "AcquireLastApplicationCaptureBuffer"},
+ {11, nullptr, "ReleaseLastApplicationCaptureBuffer"},
+ {12, nullptr, "AcquireLastForegroundCaptureBuffer"},
+ {13, nullptr, "ReleaseLastForegroundCaptureBuffer"},
+ {14, nullptr, "AcquireCallerAppletCaptureBuffer"},
+ {15, nullptr, "ReleaseCallerAppletCaptureBuffer"},
+ {16, nullptr, "AcquireLastApplicationCaptureBufferEx"},
+ {17, nullptr, "AcquireLastForegroundCaptureBufferEx"},
+ {18, nullptr, "AcquireCallerAppletCaptureBufferEx"},
+ // 2.0.0+
+ {20, nullptr, "ClearCaptureBuffer"},
+ {21, nullptr, "ClearAppletTransitionBuffer"},
+ // 4.0.0+
+ {22, nullptr, "AcquireLastApplicationCaptureSharedBuffer"},
+ {23, nullptr, "ReleaseLastApplicationCaptureSharedBuffer"},
+ {24, nullptr, "AcquireLastForegroundCaptureSharedBuffer"},
+ {25, nullptr, "ReleaseLastForegroundCaptureSharedBuffer"},
+ {26, nullptr, "AcquireCallerAppletCaptureSharedBuffer"},
+ {27, nullptr, "ReleaseCallerAppletCaptureSharedBuffer"},
+ };
+ RegisterHandlers(functions);
+}
IDebugFunctions::IDebugFunctions() : ServiceFramework("IDebugFunctions") {}