summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/caps/caps_su.cpp
diff options
context:
space:
mode:
authorJason Parker <north@ntbox.com>2020-04-30 15:06:52 +0200
committerJason Parker <north@ntbox.com>2020-04-30 21:16:53 +0200
commit4b16e93f1a36f3ceae4a48ac3936eff4ffcd4746 (patch)
treee829da67e5b2e923689ac62a8ce0c8e0373c3614 /src/core/hle/service/caps/caps_su.cpp
parentcaps: Add missing service names to caps:su (diff)
downloadyuzu-4b16e93f1a36f3ceae4a48ac3936eff4ffcd4746.tar
yuzu-4b16e93f1a36f3ceae4a48ac3936eff4ffcd4746.tar.gz
yuzu-4b16e93f1a36f3ceae4a48ac3936eff4ffcd4746.tar.bz2
yuzu-4b16e93f1a36f3ceae4a48ac3936eff4ffcd4746.tar.lz
yuzu-4b16e93f1a36f3ceae4a48ac3936eff4ffcd4746.tar.xz
yuzu-4b16e93f1a36f3ceae4a48ac3936eff4ffcd4746.tar.zst
yuzu-4b16e93f1a36f3ceae4a48ac3936eff4ffcd4746.zip
Diffstat (limited to 'src/core/hle/service/caps/caps_su.cpp')
-rw-r--r--src/core/hle/service/caps/caps_su.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/core/hle/service/caps/caps_su.cpp b/src/core/hle/service/caps/caps_su.cpp
index b4d9355ef..e8b0698e8 100644
--- a/src/core/hle/service/caps/caps_su.cpp
+++ b/src/core/hle/service/caps/caps_su.cpp
@@ -2,6 +2,8 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
+#include "common/logging/log.h"
+#include "core/hle/ipc_helpers.h"
#include "core/hle/service/caps/caps_su.h"
namespace Service::Capture {
@@ -9,7 +11,7 @@ namespace Service::Capture {
CAPS_SU::CAPS_SU() : ServiceFramework("caps:su") {
// clang-format off
static const FunctionInfo functions[] = {
- {32, nullptr, "SetShimLibraryVersion"},
+ {32, &CAPS_SU::SetShimLibraryVersion, "SetShimLibraryVersion"},
{201, nullptr, "SaveScreenShot"},
{203, nullptr, "SaveScreenShotEx0"},
{205, nullptr, "SaveScreenShotEx1"},
@@ -22,4 +24,11 @@ CAPS_SU::CAPS_SU() : ServiceFramework("caps:su") {
CAPS_SU::~CAPS_SU() = default;
+void CAPS_SU::SetShimLibraryVersion(Kernel::HLERequestContext& ctx) {
+ LOG_WARNING(Service_Capture, "(STUBBED) called");
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(RESULT_SUCCESS);
+}
+
} // namespace Service::Capture