diff options
author | bunnei <bunneidev@gmail.com> | 2020-05-02 05:34:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-02 05:34:05 +0200 |
commit | 1bcdf5e61c7891fbb7a108cd50776d9a83d5e0a1 (patch) | |
tree | c48cc0b97b0da54eec47faf13c6675f17d1496d7 /src | |
parent | Merge pull request #3821 from ogniK5377/InitializeApplicationInfo-fix (diff) | |
parent | caps:su Stub out SetShimLibraryVersion (diff) | |
download | yuzu-1bcdf5e61c7891fbb7a108cd50776d9a83d5e0a1.tar yuzu-1bcdf5e61c7891fbb7a108cd50776d9a83d5e0a1.tar.gz yuzu-1bcdf5e61c7891fbb7a108cd50776d9a83d5e0a1.tar.bz2 yuzu-1bcdf5e61c7891fbb7a108cd50776d9a83d5e0a1.tar.lz yuzu-1bcdf5e61c7891fbb7a108cd50776d9a83d5e0a1.tar.xz yuzu-1bcdf5e61c7891fbb7a108cd50776d9a83d5e0a1.tar.zst yuzu-1bcdf5e61c7891fbb7a108cd50776d9a83d5e0a1.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hle/service/caps/caps_su.cpp | 11 | ||||
-rw-r--r-- | src/core/hle/service/caps/caps_su.h | 3 |
2 files changed, 13 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 diff --git a/src/core/hle/service/caps/caps_su.h b/src/core/hle/service/caps/caps_su.h index cb11f7c9a..c494d7c84 100644 --- a/src/core/hle/service/caps/caps_su.h +++ b/src/core/hle/service/caps/caps_su.h @@ -16,6 +16,9 @@ class CAPS_SU final : public ServiceFramework<CAPS_SU> { public: explicit CAPS_SU(); ~CAPS_SU() override; + +private: + void SetShimLibraryVersion(Kernel::HLERequestContext& ctx); }; } // namespace Service::Capture |