diff options
| author | 2020-04-30 09:06:52 -0400 | |
|---|---|---|
| committer | 2020-04-30 15:16:53 -0400 | |
| commit | 4b16e93f1a36f3ceae4a48ac3936eff4ffcd4746 (patch) | |
| tree | e829da67e5b2e923689ac62a8ce0c8e0373c3614 | |
| parent | caps: Add missing service names to caps:su (diff) | |
| download | yuzu-4b16e93f1a36f3ceae4a48ac3936eff4ffcd4746.tar.gz yuzu-4b16e93f1a36f3ceae4a48ac3936eff4ffcd4746.tar.xz yuzu-4b16e93f1a36f3ceae4a48ac3936eff4ffcd4746.zip | |
caps:su Stub out SetShimLibraryVersion
Used by Animal Crossing: New Horizons when trying to take a picture.
| -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 @@ | |||
| 2 | // Licensed under GPLv2 or any later version | 2 | // Licensed under GPLv2 or any later version |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include "common/logging/log.h" | ||
| 6 | #include "core/hle/ipc_helpers.h" | ||
| 5 | #include "core/hle/service/caps/caps_su.h" | 7 | #include "core/hle/service/caps/caps_su.h" |
| 6 | 8 | ||
| 7 | namespace Service::Capture { | 9 | namespace Service::Capture { |
| @@ -9,7 +11,7 @@ namespace Service::Capture { | |||
| 9 | CAPS_SU::CAPS_SU() : ServiceFramework("caps:su") { | 11 | CAPS_SU::CAPS_SU() : ServiceFramework("caps:su") { |
| 10 | // clang-format off | 12 | // clang-format off |
| 11 | static const FunctionInfo functions[] = { | 13 | static const FunctionInfo functions[] = { |
| 12 | {32, nullptr, "SetShimLibraryVersion"}, | 14 | {32, &CAPS_SU::SetShimLibraryVersion, "SetShimLibraryVersion"}, |
| 13 | {201, nullptr, "SaveScreenShot"}, | 15 | {201, nullptr, "SaveScreenShot"}, |
| 14 | {203, nullptr, "SaveScreenShotEx0"}, | 16 | {203, nullptr, "SaveScreenShotEx0"}, |
| 15 | {205, nullptr, "SaveScreenShotEx1"}, | 17 | {205, nullptr, "SaveScreenShotEx1"}, |
| @@ -22,4 +24,11 @@ CAPS_SU::CAPS_SU() : ServiceFramework("caps:su") { | |||
| 22 | 24 | ||
| 23 | CAPS_SU::~CAPS_SU() = default; | 25 | CAPS_SU::~CAPS_SU() = default; |
| 24 | 26 | ||
| 27 | void CAPS_SU::SetShimLibraryVersion(Kernel::HLERequestContext& ctx) { | ||
| 28 | LOG_WARNING(Service_Capture, "(STUBBED) called"); | ||
| 29 | |||
| 30 | IPC::ResponseBuilder rb{ctx, 2}; | ||
| 31 | rb.Push(RESULT_SUCCESS); | ||
| 32 | } | ||
| 33 | |||
| 25 | } // namespace Service::Capture | 34 | } // 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> { | |||
| 16 | public: | 16 | public: |
| 17 | explicit CAPS_SU(); | 17 | explicit CAPS_SU(); |
| 18 | ~CAPS_SU() override; | 18 | ~CAPS_SU() override; |
| 19 | |||
| 20 | private: | ||
| 21 | void SetShimLibraryVersion(Kernel::HLERequestContext& ctx); | ||
| 19 | }; | 22 | }; |
| 20 | 23 | ||
| 21 | } // namespace Service::Capture | 24 | } // namespace Service::Capture |