diff options
author | bunnei <bunneidev@gmail.com> | 2020-10-07 06:39:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-07 06:39:38 +0200 |
commit | 32b4627a9cb9c3af145c2420af59603402b4802a (patch) | |
tree | 28cc06f6542f0c62969203eb720367dc208efca5 /src/core/hle/service/caps/caps_c.cpp | |
parent | Merge pull request #4727 from FrogTheFrog/patch-1 (diff) | |
parent | caps_c: Stub SetShimLibraryVersion (diff) | |
download | yuzu-32b4627a9cb9c3af145c2420af59603402b4802a.tar yuzu-32b4627a9cb9c3af145c2420af59603402b4802a.tar.gz yuzu-32b4627a9cb9c3af145c2420af59603402b4802a.tar.bz2 yuzu-32b4627a9cb9c3af145c2420af59603402b4802a.tar.lz yuzu-32b4627a9cb9c3af145c2420af59603402b4802a.tar.xz yuzu-32b4627a9cb9c3af145c2420af59603402b4802a.tar.zst yuzu-32b4627a9cb9c3af145c2420af59603402b4802a.zip |
Diffstat (limited to 'src/core/hle/service/caps/caps_c.cpp')
-rw-r--r-- | src/core/hle/service/caps/caps_c.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/core/hle/service/caps/caps_c.cpp b/src/core/hle/service/caps/caps_c.cpp index ab17a187e..a0ee116fa 100644 --- a/src/core/hle/service/caps/caps_c.cpp +++ b/src/core/hle/service/caps/caps_c.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_c.h" namespace Service::Capture { @@ -47,7 +49,7 @@ CAPS_C::CAPS_C() : ServiceFramework("caps:c") { static const FunctionInfo functions[] = { {1, nullptr, "CaptureRawImage"}, {2, nullptr, "CaptureRawImageWithTimeout"}, - {33, nullptr, "Unknown33"}, + {33, &CAPS_C::SetShimLibraryVersion, "SetShimLibraryVersion"}, {1001, nullptr, "RequestTakingScreenShot"}, {1002, nullptr, "RequestTakingScreenShotWithTimeout"}, {1011, nullptr, "NotifyTakingScreenShotRefused"}, @@ -72,4 +74,16 @@ CAPS_C::CAPS_C() : ServiceFramework("caps:c") { CAPS_C::~CAPS_C() = default; +void CAPS_C::SetShimLibraryVersion(Kernel::HLERequestContext& ctx) { + IPC::RequestParser rp{ctx}; + const auto library_version{rp.Pop<u64>()}; + const auto applet_resource_user_id{rp.Pop<u64>()}; + + LOG_WARNING(Service_Capture, "(STUBBED) called. library_version={}, applet_resource_user_id={}", + library_version, applet_resource_user_id); + + IPC::ResponseBuilder rb{ctx, 2}; + rb.Push(RESULT_SUCCESS); +} + } // namespace Service::Capture |